Skip to content

Commit 9a1b3f2

Browse files
committed
Add -no-toolchain-stdlib-rpath tests to test/Driver/linker-rpath.swift.
1 parent 0596b20 commit 9a1b3f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Driver/linker-rpath.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
// RUN: %swiftc_driver_plain -driver-print-jobs -toolchain-stdlib-rpath -target x86_64-apple-macosx10.9 %S/../Inputs/empty.swift -resource-dir garbage/ | %FileCheck -check-prefix TOOLCHAIN-RPATH -DPLATFORM=%target-sdk-name %s
3838
// RUN: %swiftc_driver_plain -driver-print-jobs -toolchain-stdlib-rpath -target x86_64-apple-macosx10.15 %S/../Inputs/empty.swift -resource-dir garbage/ | %FileCheck -check-prefix TOOLCHAIN-RPATH -DPLATFORM=%target-sdk-name %s
3939

40+
// ### Test with -no-toolchain-stdlib-rpath
41+
// RUN: %swiftc_driver_plain -driver-print-jobs -no-toolchain-stdlib-rpath -target x86_64-apple-macosx10.9 %S/../Inputs/empty.swift | %FileCheck -check-prefix RPATH %s
42+
// RUN: %swiftc_driver_plain -driver-print-jobs -no-toolchain-stdlib-rpath -target x86_64-apple-macosx10.15 %S/../Inputs/empty.swift | %FileCheck -check-prefix NO-RPATH %s
43+
4044
// TOOLCHAIN-RPATH: bin/ld{{"? }}
4145
// TOOLCHAIN-RPATH-SAME: -rpath garbage/[[PLATFORM]]{{ }}
4246
// TOOLCHAIN-RPATH-SAME: -o {{[^ ]+}}

0 commit comments

Comments
 (0)