[K/N][perf] Windows bat script for getting parameter value

This commit is contained in:
Elena Lepilkina
2021-09-01 17:37:41 +03:00
committed by Space
parent a3158841fb
commit 9ed08438d5
+17
View File
@@ -0,0 +1,17 @@
@echo off
set "ALL_PARAMS=%konanCompilerArgs%"
set "MEMORY_MODEL=%1"
if "%MEMORY_MODEL%" == "experimental" (
if "%ALL_PARAMS%" == "" (
set "ALL_PARAMS=-memory-model experimental"
) ELSE (
set "ALL_PARAMS=-memory-model experimental %ALL_PARAMS%"
)
)
if not "%ALL_PARAMS%" == "" (
SET "ALL_PARAMS=-PcompilerArgs=%ALL_PARAMS%"
)
echo "##teamcity[setParameter name='env.konanCompilerArgs' value='%ALL_PARAMS%']"