From 62914fcd2d89e33f95c810671ebc409e39d9ac23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 21 Jul 2022 08:46:00 +0300 Subject: [PATCH] build-llvm: Set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY when cross compiling This avoids picking up a host cmake config file for zstd, in the github actions CI, in the current git main version of llvm. --- build-llvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-llvm.sh b/build-llvm.sh index 7616a69..415259e 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -194,6 +194,7 @@ if [ -n "$HOST" ]; then CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER" CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY" CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY" + CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY" # Custom, llvm-mingw specific defaults. We normally set these in # the frontend wrappers, but this makes sure they are enabled by