1
0
Fork 0
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:
Connor Olding 2017-04-01 22:27:46 +00:00
parent 4e7caf55ae
commit 50feb42b6a
2 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,7 @@ whoa=(
-Werror=uninitialized
-Werror=missing-prototypes
-Werror=format-security
#-Werror=undef
# -Werror=undef
-Wno-unused
-Wno-padded

View File

@ -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