
Previously compiler-rt didn't correctly passthrough cmake variables for python when building the various santizers. This patch passes these variables through. This patch may also correctly apply to any version of LLVM to any version of LLVM that uses the newer monorepo style organization, and any older llvm newer than 7.0.0 as long as the paths were set appropriately. However, this was not done so because it was not tested with older LLVM releases. Fixes #19908 See also: https://bugs.llvm.org/show_bug.cgi?id=48180
15 lines
571 B
Diff
15 lines
571 B
Diff
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
|
|
index dab55707338..6f4c6791141 100644
|
|
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
|
|
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
|
|
@@ -612,6 +612,9 @@ macro(add_custom_libcxx name prefix)
|
|
CMAKE_OBJDUMP
|
|
CMAKE_STRIP
|
|
CMAKE_SYSROOT
|
|
+ PYTHON_EXECUTABLE
|
|
+ Python3_EXECUTABLE
|
|
+ Python2_EXECUTABLE
|
|
CMAKE_SYSTEM_NAME)
|
|
foreach(variable ${PASSTHROUGH_VARIABLES})
|
|
get_property(is_value_set CACHE ${variable} PROPERTY VALUE SET)
|