[K/N][perf] Added script to get and redefine compiler args on TC
This commit is contained in:
@@ -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']"
|
||||
Reference in New Issue
Block a user