[K/N][perf] Added script to get and redefine compiler args on TC

This commit is contained in:
Elena Lepilkina
2021-08-31 15:34:47 +03:00
committed by Space
parent ce377e4a33
commit a3158841fb
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
ALL_PARAMS="$konanCompilerArgs"
MEMORY_MODEL=$1
if [ $MEMORY_MODEL = "experimental" ]; then
if [ "$ALL_PARAMS" != "" ]; then
ALL_PARAMS=" $ALL_PARAMS"
fi
ALL_PARAMS="-memory-model experimental$ALL_PARAMS"
fi
if [ "$ALL_PARAMS" != "" ]; then
ALL_PARAMS="-PcompilerArgs=$ALL_PARAMS"
fi
echo "##teamcity[setParameter name='env.konanCompilerArgs' value='$ALL_PARAMS']"