install-wrappers: Prefer the CRT's implementation of printf functions

This avoids bloating the wrapper executables, when built for
msvcrt (where the default is to enable __USE_MINGW_ANSI_STDIO
when targeting C99 or newer).
This commit is contained in:
Martin Storsjö committed 2024-06-03 12:36:28 +03:00
1 parent ebde97faaf
commit 3cf884f8b7
1 file changed
+4
+4
View File
@@ -115,6 +115,10 @@ if [ -n "$EXEEXT" ]; then
CLANG_MAJOR=$(basename $(echo $PREFIX/lib/clang/* | awk '{print $NF}') | cut -f 1 -d .)
WRAPPER_FLAGS="$WRAPPER_FLAGS -municode -DCLANG=\"clang-$CLANG_MAJOR\""
WRAPPER_FLAGS="$WRAPPER_FLAGS -DCLANG_SCAN_DEPS=\"clang-scan-deps-real\""
# The wrappers may use printf, but doesn't use anything that specifically
# needs full ansi compliance - prefer leaner binaries by using the CRT
# implementations.
WRAPPER_FLAGS="$WRAPPER_FLAGS -D__USE_MINGW_ANSI_STDIO=0"
fi
mkdir -p "$PREFIX/bin"