wrappers: Use clang config files for defaults

This makes these defaults more easy to get picked up in various
use cases, when not directly executing a compiler.
This commit is contained in:
Martin Storsjö committed 2024-10-02 15:58:00 +03:00
1 parent e9e2ef7d53
commit 6939aee0c0
10 files changed
+34 -39

No files matched your search

+3
View File
@@ -123,6 +123,9 @@ fi
mkdir -p "$PREFIX/bin"
cp wrappers/*-wrapper.sh "$PREFIX/bin"
for arch in $ARCHS; do
cp wrappers/$arch-w64-mingw32.cfg $PREFIX/bin
done
if [ -n "$HOST" ] && [ -n "$EXEEXT" ]; then
# TODO: If building natively on msys, pick up the default HOST value from there.
WRAPPER_FLAGS="$WRAPPER_FLAGS -DDEFAULT_TARGET=\"$HOST\""