mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -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=uninitialized
|
||||||
-Werror=missing-prototypes
|
-Werror=missing-prototypes
|
||||||
-Werror=format-security
|
-Werror=format-security
|
||||||
#-Werror=undef
|
# -Werror=undef
|
||||||
|
|
||||||
-Wno-unused
|
-Wno-unused
|
||||||
-Wno-padded
|
-Wno-padded
|
||||||
|
|
|
@ -65,7 +65,7 @@ compile() {
|
||||||
{ [ $1 = clang ] && CC="clang" && CXX="clang++" && shift } || \
|
{ [ $1 = clang ] && CC="clang" && CXX="clang++" && shift } || \
|
||||||
{ [ $1 = gcc ] && CC="gcc" && CXX="g++" && shift }
|
{ [ $1 = gcc ] && CC="gcc" && CXX="g++" && shift }
|
||||||
|
|
||||||
if [ CC=clang ]; then
|
if [ $CC = clang ]; then
|
||||||
debug_flags+=(-ftrapv)
|
debug_flags+=(-ftrapv)
|
||||||
if [ -z $MSYSTEM ]; then # only available on linux
|
if [ -z $MSYSTEM ]; then # only available on linux
|
||||||
debug_flags+=(-fsanitize=undefined) # this SHOULD work with mingw,
|
debug_flags+=(-fsanitize=undefined) # this SHOULD work with mingw,
|
||||||
|
@ -76,6 +76,8 @@ compile() {
|
||||||
hardened_flags+=(-fsanitize=safe-stack)
|
hardened_flags+=(-fsanitize=safe-stack)
|
||||||
hardened_flags+=(-fstack-protector-strong)
|
hardened_flags+=(-fstack-protector-strong)
|
||||||
hardened_flags+=(-fvisibility=hidden -fuse-ld=gold -flto -fsanitize=cfi)
|
hardened_flags+=(-fvisibility=hidden -fuse-ld=gold -flto -fsanitize=cfi)
|
||||||
|
else
|
||||||
|
our_flags+=(-fansi-escape-codes)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user