mirror of
https://github.com/notwa/rc
synced 2024-06-26 01:07:11 -07:00
use ansi escapes on windows and fix dumb bug
This commit is contained in:
parent
4e7caf55ae
commit
50feb42b6a
|
@ -90,7 +90,7 @@ whoa=(
|
|||
-Werror=uninitialized
|
||||
-Werror=missing-prototypes
|
||||
-Werror=format-security
|
||||
#-Werror=undef
|
||||
# -Werror=undef
|
||||
|
||||
-Wno-unused
|
||||
-Wno-padded
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user