1
0
Fork 0

Use PRIuPTR and define it for Windows GCC 64-bit

This commit is contained in:
krcroft 2019-11-29 17:28:51 -08:00 committed by Patryk Obara
parent 7d21bb1408
commit b55b43f543
8 changed files with 295 additions and 270 deletions

View file

@ -4,11 +4,14 @@ cxx="clang++${postfix}"
# Flag additions
TYPES+=("debug" "profile")
cflags+=("-fcolor-diagnostics")
cflags_release=("${cflags[@]}" "-Os")
cflags_debug=("${cflags[@]}" "-g" "-Og" "-fno-omit-frame-pointer")
cflags_profile=("${cflags_debug[@]}" "-fprofile-instr-generate" "-fcoverage-mapping")
# Colorize output only for interactive shells
if [[ $- == *i* ]]; then
cflags+=("-fcolor-diagnostics")
fi
# Modifier additions
MODIFIERS=("fdo")

View file

@ -7,7 +7,7 @@ ranlib="gcc-ranlib${postfix}"
# Flag additions
TYPES+=("debug" "profile")
cflags+=("-fstack-protector" "-fdiagnostics-color=always")
cflags+=("-fstack-protector" "-fdiagnostics-color=auto")
cflags_release=("${cflags[@]}" "-Ofast" "-ffunction-sections" "-fdata-sections")
cflags_debug=("${cflags[@]}" "-g" "-Og" "-fno-omit-frame-pointer")
cflags_profile=("${cflags_debug[@]}" "-pg")