File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,11 @@ option(LLDB_TEST_SWIFT "Use in-tree swift when testing lldb" On)
32
32
if (LLDB_TEST_SWIFT)
33
33
set (LLDB_SWIFTC ${SWIFT_BINARY_DIR} /bin/swiftc CACHE STRING "Path to swift compiler" )
34
34
set (LLDB_SWIFT_LIBS ${SWIFT_LIBRARY_DIR} /swift CACHE STRING "Path to swift libraries" )
35
+ # Prefer the just-built stdlib over the system one.
35
36
set (SWIFT_TEST_ARGS
36
- --swift-compiler ${LLDB_SWIFTC}
37
- # Prefer the just-built stdlib over the system one.
38
37
--inferior-env "DYLD_LIBRARY_PATH=\\\" ${LLDB_SWIFT_LIBS} /macosx\\\" "
39
38
--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\\\" " )
42
40
endif ()
43
41
# END - Swift Mods
44
42
Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ def delete_module_cache(path):
194
194
if is_configured ('test_compiler' ):
195
195
dotest_cmd += ['--compiler' , config .test_compiler ]
196
196
197
+ if is_configured ('test_swift_compiler' ):
198
+ dotest_cmd += ['--swift-compiler' , config .test_swift_compiler ]
199
+
197
200
if is_configured ('dsymutil' ):
198
201
dotest_cmd += ['--dsymutil' , config .dsymutil ]
199
202
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ config.enabled_plugins = []
29
29
config.lldb_executable = '@LLDB_TEST_EXECUTABLE@'
30
30
config.test_arch = '@LLDB_TEST_ARCH@'
31
31
config.test_compiler = '@LLDB_TEST_COMPILER@'
32
+ config.test_swift_compiler = '@LLDB_SWIFTC@'
32
33
config.dsymutil = '@LLDB_TEST_DSYMUTIL@'
33
34
config.filecheck = '@LLDB_TEST_FILECHECK@'
34
35
config.yaml2obj = '@LLDB_TEST_YAML2OBJ@'
You can’t perform that action at this time.
0 commit comments