Skip to content

Commit dedeb66

Browse files
committed
Make lit configs relocatable again after c747b7d
See https://reviews.llvm.org/D77184 for background.
1 parent 46db432 commit dedeb66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ configure_lit_site_cfg(
2626
MAIN_CONFIG
2727
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
2828
PATHS
29+
"CMAKE_OSX_SYSROOT"
2930
"LLVM_SOURCE_DIR"
3031
"LLVM_BINARY_DIR"
3132
"LLVM_TOOLS_DIR"

llvm/test/lit.site.cfg.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@"
1717
config.python_executable = "@Python3_EXECUTABLE@"
1818
config.gold_executable = "@GOLD_EXECUTABLE@"
1919
config.ld64_executable = "@LD64_EXECUTABLE@"
20-
config.osx_sysroot = "@CMAKE_OSX_SYSROOT@"
20+
config.osx_sysroot = path(r"@CMAKE_OSX_SYSROOT@")
2121
config.ocamlfind_executable = "@OCAMLFIND@"
2222
config.have_ocamlopt = @HAVE_OCAMLOPT@
2323
config.have_ocaml_ounit = @HAVE_OCAML_OUNIT@

0 commit comments

Comments
 (0)