Browse Source

Clean up some options warnings in tool for tcc

master
cancel 5 years ago
parent
commit
178d7ee31c
  1. 10
      tool

10
tool

@ -276,14 +276,20 @@ build_target() {
release) release)
add cc_flags -DNDEBUG -O2 -g0 add cc_flags -DNDEBUG -O2 -g0
if [[ $protections_enabled != 1 ]]; then if [[ $protections_enabled != 1 ]]; then
add cc_flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-stack-protector add cc_flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
case $cc_id in
gcc|clang) add cc_flags -fno-stack-protector;;
esac
fi fi
if [[ $os = mac ]]; then if [[ $os = mac ]]; then
# todo some stripping option # todo some stripping option
true true
else else
# -flto is good on both clang and gcc on Linux # -flto is good on both clang and gcc on Linux
add cc_flags -flto -s case $cc_id in
gcc|clang) add cc_flags -flto
esac
add cc_flags -s
fi fi
;; ;;
*) fatal "Unknown build config \"$config_mode\"";; *) fatal "Unknown build config \"$config_mode\"";;

Loading…
Cancel
Save