Skip to content

Commit f9722e6

Browse files
compnerdbriancroom
authored andcommitted
tests: allow passing in SDKROOT for Windows as well
Allow passing through `-sdk %SDKROOT%` on Windows for tests.
1 parent b8da67f commit f9722e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/Functional/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ else:
7575
# We need to jump through extra hoops to link swift-corelibs-foundation.
7676
foundation_dir = _getenv('FOUNDATION_BUILT_PRODUCTS_DIR')
7777
if platform.system() == 'Windows':
78+
sdkroot = os.getenv('SDKROOT', None)
79+
if sdkroot:
80+
swift_exec.extend(['-sdk', sdkroot])
7881
swift_exec.extend(['-Xlinker', '-nodefaultlib:libcmt'])
7982
else:
8083
swift_exec.extend([

0 commit comments

Comments
 (0)