Skip to content

Commit

Permalink
change gnu stack limit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yubowenok committed Feb 24, 2017
1 parent d8c3688 commit e68a43f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test_runner
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ if [[ $suffix == "cpp" ]]; then
elif [[ $os == 'mac' ]]; then
g++ -Wl,-stack_size,0x10000000 $2 -o $name -O2 -Wall -Wextra -std=gnu++0x || exit
else
# stack size set by "ulimit -s"
g++ $2 -o $name -O2 -Wall -Wextra -std=gnu++0x || exit
g++ -fstack-limit-symbol=__stack_limit -Wl,--defsym,__stack_limit=0x10000000 -fstack-check $2 -o $name -O2 -Wall -Wextra -std=gnu++0x || exit
fi
runcmd="./$name"
elif [[ $suffix == "java" ]]; then
Expand Down

0 comments on commit e68a43f

Please sign in to comment.