Skip to content

Commit a2df1e4

Browse files
authored
Merge pull request swiftlang#1904 from JDevlieghere/test_swift_compiler
[lldb] Hoist --swift-compiler argument out of LLDB_TEST_COMMON_ARGS
2 parents 44872a7 + 187a46e commit a2df1e4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lldb/test/API/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ option(LLDB_TEST_SWIFT "Use in-tree swift when testing lldb" On)
3232
if(LLDB_TEST_SWIFT)
3333
set(LLDB_SWIFTC ${SWIFT_BINARY_DIR}/bin/swiftc CACHE STRING "Path to swift compiler")
3434
set(LLDB_SWIFT_LIBS ${SWIFT_LIBRARY_DIR}/swift CACHE STRING "Path to swift libraries")
35+
# Prefer the just-built stdlib over the system one.
3536
set(SWIFT_TEST_ARGS
36-
--swift-compiler ${LLDB_SWIFTC}
37-
# Prefer the just-built stdlib over the system one.
3837
--inferior-env "DYLD_LIBRARY_PATH=\\\"${LLDB_SWIFT_LIBS}/macosx\\\""
3938
--inferior-env "LD_LIBRARY_PATH=\\\"${LLDB_SWIFT_LIBS}/${CMAKE_SYSTEM_PROCESSOR}\\\""
40-
--inferior-env "SIMCTL_CHILD_DYLD_LIBRARY_PATH=\\\"${LLDB_SWIFT_LIBS}/macosx\\\""
41-
)
39+
--inferior-env "SIMCTL_CHILD_DYLD_LIBRARY_PATH=\\\"${LLDB_SWIFT_LIBS}/macosx\\\"")
4240
endif()
4341
# END - Swift Mods
4442

lldb/test/API/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def delete_module_cache(path):
194194
if is_configured('test_compiler'):
195195
dotest_cmd += ['--compiler', config.test_compiler]
196196

197+
if is_configured('test_swift_compiler'):
198+
dotest_cmd += ['--swift-compiler', config.test_swift_compiler]
199+
197200
if is_configured('dsymutil'):
198201
dotest_cmd += ['--dsymutil', config.dsymutil]
199202

lldb/test/API/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ config.enabled_plugins = []
2929
config.lldb_executable = '@LLDB_TEST_EXECUTABLE@'
3030
config.test_arch = '@LLDB_TEST_ARCH@'
3131
config.test_compiler = '@LLDB_TEST_COMPILER@'
32+
config.test_swift_compiler = '@LLDB_SWIFTC@'
3233
config.dsymutil = '@LLDB_TEST_DSYMUTIL@'
3334
config.filecheck = '@LLDB_TEST_FILECHECK@'
3435
config.yaml2obj = '@LLDB_TEST_YAML2OBJ@'

0 commit comments

Comments
 (0)