File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,14 @@ config.suffixes = ['.test']
2
2
3
3
if ' lldb-repro' in config.available_features:
4
4
config.unsupported = True
5
+
6
+ def check_exists(path):
7
+ import os
8
+ if not os.path.isfile(path):
9
+ lit_config.warning(f" Runtime dependency not found: {path}" )
10
+
11
+ # Check runtime dependencies for SwiftREPL tests on Windows
12
+ if sys.platform == " win32" :
13
+ host_arch = config.host_triple.split(" -" )[0]
14
+ check_exists(f" {config.swift_libs_dir}/windows/{host_arch}/swiftrt.obj" )
15
+ check_exists(f" {config.llvm_shlib_dir}/swiftCore.dll" )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ config.libcxx_libs_dir = "@LIBCXX_LIBRARY_DIR@"
22
22
config.target_triple = "@LLVM_TARGET_TRIPLE@"
23
23
config.python_executable = "@Python3_EXECUTABLE@"
24
24
config.swiftc = "@LLDB_SWIFTC@"
25
+ config.swift_libs_dir = '@LLDB_SWIFT_LIBS@'
25
26
config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@
26
27
config.have_zlib = @LLVM_ENABLE_ZLIB@
27
28
config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@"
You can’t perform that action at this time.
0 commit comments