Skip to content

Commit e41945a

Browse files
Expand the Swift SDKs path to an absolute path in the lit.cfg file.
1 parent 6fe3b44 commit e41945a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ config.swift_sdk = swift_sdk
4242

4343
# --param swift-sdks-path=<swift-sdks-path>
4444
config.swift_sdks_path = lit_config.params.get("swift-sdks-path")
45+
if config.swift_sdks_path:
46+
config.swift_sdks_path = os.path.abspath(config.swift_sdks_path)
47+
lit_config.note(f"using Swift SDKs path: {config.swift_sdks_path}")
4548

4649
# --param base-toolchain-path=PATH
4750
base_toolchain_path = lit_config.params.get("base-toolchain-path")

0 commit comments

Comments
 (0)