X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=build%2Fcompiler_flags;h=b17dac3db9ea7444a3215a19e0b1dc50671ac13e;hb=d8143f05add023ec94dec4725c85811b3da22471;hp=f80d291b370d2763a6b2aebaf7dd3805c40d83fc;hpb=5fd4be90f125e318a2fcaa0b92329511cb178f5a;p=plomrogue diff --git a/build/compiler_flags b/build/compiler_flags index f80d291..b17dac3 100644 --- a/build/compiler_flags +++ b/build/compiler_flags @@ -1 +1,13 @@ -CFLAGS='-std=c11 -pedantic-errors -Wall -Werror -Wextra -Wformat-security -g' +# This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 +# or any later version. For details on its copyright, license, and warranties, +# see the file NOTICE in the root directory of the PlomRogue source package. + +OFLAG='-O3' +CFLAGS="-std=c11 -pedantic-errors -Wall -Werror -Wextra -Wformat-security $OFLAG" + +# For non-GNU gcc masks, drop all gcc-specific debugging flags. +test=`stat --version 2>&1 | grep 'Free Software Foundation' | wc -l` +if [ 1 -gt $test ] +then + CFLAGS=$OFLAG +fi