[compiler-rt] [compiler-rt] Propagate sysroot from CMake to msan tests (PR #132299)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 22:49:51 PDT 2025


================
@@ -6,6 +6,7 @@ config.target_cflags = "@MSAN_TEST_TARGET_CFLAGS@"
 config.target_arch = "@MSAN_TEST_TARGET_ARCH@"
 config.use_lld = @MSAN_TEST_USE_LLD@
 config.use_thinlto = @MSAN_TEST_USE_THINLTO@
+config.cmake_sysroot = "@CMAKE_SYSROOT@"
----------------
petrhosek wrote:

Could we instead include the `--sysroot=${CMAKE_SYSROOT}` flag in `MSAN_TEST_TARGET_CFLAGS`?

https://github.com/llvm/llvm-project/pull/132299


More information about the llvm-commits mailing list