0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-13 01:50:33 +00:00
termux-packages/packages/llvm-mingw-w64/0001-append-sysroot.patch
2023-02-12 04:20:10 +00:00

11 lines
323 B
Diff

--- a/bin/clang-target-wrapper.sh.orig
+++ b/bin/clang-target-wrapper.sh
@@ -94,6 +94,7 @@
FLAGS="$FLAGS -unwindlib=libunwind"
FLAGS="$FLAGS -stdlib=libc++"
FLAGS="$FLAGS -fuse-ld=lld"
+FLAGS="$FLAGS --sysroot=@TERMUX_PREFIX@/opt/llvm-mingw-w64"
FLAGS="$FLAGS --end-no-unused-arguments"
$CCACHE "$CLANG" $FLAGS "$@"