From bc1691262bec66cc5c90be5ff6f387a3a00265b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 20 Jul 2022 23:52:08 +0300 Subject: [PATCH] build-llvm: Allow prepopulating CMAKEFLAGS This allows passing options without proper command line flags. --- build-llvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-llvm.sh b/build-llvm.sh index d7b29e2..7616a69 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -144,6 +144,8 @@ else BUILDCMD=make fi +CMAKEFLAGS="$LLVM_CMAKEFLAGS" + if [ -n "$HOST" ]; then CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_SYSTEM_NAME=Windows" CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CROSSCOMPILING=TRUE"