Skip to content

Commit 62914fc

Browse files
committed
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.
1 parent badbd89 commit 62914fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-llvm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ if [ -n "$HOST" ]; then
194194
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER"
195195
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY"
196196
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY"
197+
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY"
197198

198199
# Custom, llvm-mingw specific defaults. We normally set these in
199200
# the frontend wrappers, but this makes sure they are enabled by

0 commit comments

Comments
 (0)