Skip to content

Commit b10bc61

Browse files
committed
[Tests] Properly link Linux tests
swiftlang#46 is missing this change to the compiler invocation, which allows tests to run on Linux even when `--library-install-path` and `--module-install-path` are not specified.
1 parent 8934abb commit b10bc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Functional/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ swift_exec = [
3333
_getenv('SWIFT_EXEC'),
3434
'-Xlinker', '-rpath',
3535
'-Xlinker', built_products_dir,
36+
'-L', built_products_dir,
37+
'-I', built_products_dir,
3638
]
3739

3840
if platform.system() == 'Darwin':
@@ -48,8 +50,6 @@ if platform.system() == 'Darwin':
4850
swift_exec.extend([
4951
'-sdk', sdk_root,
5052
'-target', target,
51-
'-L', built_products_dir,
52-
'-I', built_products_dir,
5353
'-F', built_products_dir,
5454
])
5555

0 commit comments

Comments
 (0)