diff --git a/kotlin-native/performance/scripts/get_parameter_value.sh b/kotlin-native/performance/scripts/get_parameter_value.sh new file mode 100755 index 00000000000..23654d26d8e --- /dev/null +++ b/kotlin-native/performance/scripts/get_parameter_value.sh @@ -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']"