Skip to content

Commit 6e8b873

Browse files
committed
Add a flag to skip the LLVM version check in configure
When trying to build against a newer, local LLVM version it might be preferable to have a flag to disable the LLVM version check instead of having to modify the configure script. Fixes #21998
1 parent 88d8ba5 commit 6e8b873

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

+2-1
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ opt verify-install 1 "verify installed binaries work"
525525
opt dist-host-only 0 "only install bins for the host architecture"
526526
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
527527
opt jemalloc 1 "build liballoc with jemalloc"
528+
opt llvm-version-check 1 "don't check if the LLVM version is supported, build anyway"
528529

529530
valopt localstatedir "/var/lib" "local state directory"
530531
valopt sysconfdir "/etc" "install system configuration files"
@@ -796,7 +797,7 @@ then
796797
putvar CFG_ENABLE_CLANG
797798
fi
798799

799-
if [ ! -z "$CFG_LLVM_ROOT" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
800+
if [ ! -z "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
800801
then
801802
step_msg "using custom LLVM at $CFG_LLVM_ROOT"
802803

0 commit comments

Comments
 (0)