From 51abc9117f7c7087a8519e38d71da411a8ffe3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 22 Mar 2023 23:32:03 +0200 Subject: [PATCH] build-llvm: Enable LLD_DEFAULT_LD_LLD_IS_MINGW for builds on Windows This makes sure we get the right behaviour (and output from "--help") if ld.lld.exe is called directly without a wrapper setting the -m parameter. --- build-llvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-llvm.sh b/build-llvm.sh index f4d3162..56286f3 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -222,6 +222,7 @@ if [ -n "$TARGET_WINDOWS" ]; then CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_UNWINDLIB=libunwind" CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_CXX_STDLIB=libc++" CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_LINKER=lld" + CMAKEFLAGS="$CMAKEFLAGS -DLLD_DEFAULT_LD_LLD_IS_MINGW=ON" fi if [ -n "$LTO" ]; then