diff --git a/judge/compile.sh b/judge/compile.sh index 14d768b2ae..9d8abe898d 100755 --- a/judge/compile.sh +++ b/judge/compile.sh @@ -139,10 +139,10 @@ logmsg $LOG_INFO "starting compile" # shellcheck disable=SC2236 if [ ! -z "$ENTRY_POINT" ]; then - ENVIRONMENT_VARS="-V ENTRY_POINT=$ENTRY_POINT" + ENVIRONMENT_VARS="-V ENTRY_POINT=\"$ENTRY_POINT\"" fi if [ -n "$DEBUG" ]; then - ENVIRONMENT_VARS="$ENVIRONMENT_VARS -V DEBUG=$DEBUG" + ENVIRONMENT_VARS="$ENVIRONMENT_VARS -V DEBUG=\"$DEBUG\"" fi # First compile to 'source' then rename to 'program' to avoid problems with