File tree 2 files changed +12
-0
lines changed
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 @@ -17,6 +17,7 @@ config.cmake_sysroot = lit_config.substitute("@CMAKE_SYSROOT@")
17
17
config.target_triple = "@LLVM_TARGET_TRIPLE@"
18
18
config.python_executable = "@Python3_EXECUTABLE@"
19
19
config.swiftc = "@LLDB_SWIFTC@"
20
+ config.swift_libs_dir = '@LLDB_SWIFT_LIBS@'
20
21
config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@
21
22
config.have_zlib = @LLVM_ENABLE_ZLIB@
22
23
config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@"
You can’t perform that action at this time.
0 commit comments