Skip to content

Commit 98db2cb

Browse files
committed
[cmake] Do not use LLVM's configure_lit_site_cfg to configure out lit config.
We do not use any variables in our lit.site.cfg.in files that are not already set at this point in the configuration. So all calling this function does is create some variables that are not used and then calls configure. This commit just removes the call to the function and calls configure directly. This simplifies the code (we are not calling into llvm) and reduces exposure to llvm internals changing. rdar://26154980
1 parent 9bda836 commit 98db2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function(swift_configure_lit_site_cfg source_path destination_path installed_nam
1414
set(LIT_SWIFTLIB_DIR ${SWIFTLIB_DIR})
1515
endif ()
1616

17-
configure_lit_site_cfg("${source_path}" "${destination_path}")
17+
configure_file("${source_path}" "${destination_path}" @ONLY)
1818

1919
if(NOT "${installed_name}" STREQUAL "")
2020
swift_install_in_component(testsuite-tools

0 commit comments

Comments
 (0)