diff --git a/home/-shrc b/home/-shrc index 237034f..1740a27 100644 --- a/home/-shrc +++ b/home/-shrc @@ -90,7 +90,7 @@ whoa=( -Werror=uninitialized -Werror=missing-prototypes -Werror=format-security - #-Werror=undef +# -Werror=undef -Wno-unused -Wno-padded diff --git a/sh/compile b/sh/compile index 12db037..c72ca82 100755 --- a/sh/compile +++ b/sh/compile @@ -65,7 +65,7 @@ compile() { { [ $1 = clang ] && CC="clang" && CXX="clang++" && shift } || \ { [ $1 = gcc ] && CC="gcc" && CXX="g++" && shift } - if [ CC=clang ]; then + if [ $CC = clang ]; then debug_flags+=(-ftrapv) if [ -z $MSYSTEM ]; then # only available on linux debug_flags+=(-fsanitize=undefined) # this SHOULD work with mingw, @@ -76,6 +76,8 @@ compile() { hardened_flags+=(-fsanitize=safe-stack) hardened_flags+=(-fstack-protector-strong) hardened_flags+=(-fvisibility=hidden -fuse-ld=gold -flto -fsanitize=cfi) + else + our_flags+=(-fansi-escape-codes) fi fi