Skip to content

Commit 01ed0c1

Browse files
authored
[test] Fix compatibility span calculation for unified builds (#84600)
In unified builds `swift_obj_root` is in a different place in the CMake build tree, so using it as the base for finding `lib` is not correct. Change the usage of `swift_obj_root/lib` for `config.swift_lib_dir` which should be correct in both unified and non-unified builds.
1 parent 07e20ba commit 01ed0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,7 @@ if run_vendor == 'apple':
23382338
"Compatibility span back deploy libraries not found at "
23392339
f"{compatibility_span_back_deploy_path}. Falling back to local build...")
23402340
compatibility_span_back_deploy_path = os.path.join(
2341-
swift_obj_root, 'lib', 'swift-6.2', xcrun_sdk_name)
2341+
config.swift_lib_dir, 'swift-6.2', xcrun_sdk_name)
23422342
if not os.path.isdir(compatibility_span_back_deploy_path):
23432343
lit_config.fatal(
23442344
"Compatibility span back deploy libraries "

0 commit comments

Comments
 (0)