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']
22
33if ' lldb-repro' in config.available_features:
44 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@")
1717config.target_triple = "@LLVM_TARGET_TRIPLE@"
1818config.python_executable = "@Python3_EXECUTABLE@"
1919config.swiftc = "@LLDB_SWIFTC@"
20+ config.swift_libs_dir = '@LLDB_SWIFT_LIBS@'
2021config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@
2122config.have_zlib = @LLVM_ENABLE_ZLIB@
2223config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@"
You can’t perform that action at this time.
0 commit comments