[compiler-rt] [XRay] Run tests inside bootstrapping build (PR #168378)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 07:22:42 PST 2025
================
@@ -5,7 +5,7 @@ config.name_suffix = "@XRAY_TEST_CONFIG_SUFFIX@"
config.xray_lit_source_dir = "@XRAY_LIT_SOURCE_DIR@"
config.target_cflags = "@XRAY_TEST_TARGET_CFLAGS@"
config.target_arch = "@XRAY_TEST_TARGET_ARCH@"
-config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD@" != "TRUE")
+config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD AND NOT LLVM_TREE_AVAILABLE@" != "TRUE")
----------------
boomanaiden154 wrote:
Tested as far as the tests run with this. But turns out when inspecting the generated file, it just put the boolean expression in there, so this does not in fact work as intended.
I've updated the patch to use a new `COMPILER_RT_BUILT_WITH_LLVM` CMake variable that gets setup in the CMake config as suggested. I've validated that it does correctly set everything up.
https://github.com/llvm/llvm-project/pull/168378
More information about the llvm-commits
mailing list