mirror of
https://github.com/mstorsjo/llvm-mingw
synced 2026-06-21 14:01:00 +00:00
fix: repair check if existing clang supports CFG
An existing clang might support Control flow guard, but does so only for Windows targets.
This commit is contained in:
committed by
Martin Storsjö
parent
6f078940a3
commit
b482faa3c1
+1
-1
@@ -136,7 +136,7 @@ for dep in git cmake ${HOST_CLANG}; do
|
||||
done
|
||||
|
||||
if [ -n "${HOST_CLANG}" ] && [ "${CFGUARD_ARGS}" = "--enable-cfguard" ]; then
|
||||
"${HOST_CLANG}" -c -x c -o - - -Werror -mguard=cf </dev/null >/dev/null 2>/dev/null || CFGUARD_ARGS="--disable-cfguard"
|
||||
"${HOST_CLANG}" -target x86_64-w64-mingw32 -c -x c -o - - -Werror -mguard=cf </dev/null >/dev/null 2>/dev/null || CFGUARD_ARGS="--disable-cfguard"
|
||||
fi
|
||||
|
||||
if [ -n "$FULL_PGO" ]; then
|
||||
|
||||
Reference in New Issue
Block a user