Skip to content

Commit d35b428

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 8a55a7d commit d35b428

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
@@ -73,6 +73,9 @@ else:
7373
# We need to jump through extra hoops to link swift-corelibs-foundation.
7474
foundation_dir = _getenv('FOUNDATION_BUILT_PRODUCTS_DIR')
7575
if platform.system() == 'Windows':
76+
sdkroot = os.getenv('SDKROOT', None)
77+
if sdkroot:
78+
swift_exec.extend(['-sdk', sdkroot])
7679
swift_exec.extend(['-Xlinker', '-nodefaultlib:libcmt'])
7780
else:
7881
swift_exec.extend([

0 commit comments

Comments
 (0)