|
104 | 104 | // INFERRED_NAMED_DARWIN tests above: 'libLINKER.dylib'.
|
105 | 105 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-macosx10.9 -emit-library %s -o libLINKER.dylib | %FileCheck -check-prefix INFERRED_NAME_DARWIN %s
|
106 | 106 |
|
107 |
| -// On Darwin, when C++ interop is turned on, we link against libc++ explicitly |
108 |
| -// regardless of whether -experimental-cxx-stdlib is specified or not. So also |
109 |
| -// run a test where C++ interop is turned off to make sure we don't link |
| 107 | +// On Darwin, when C++ interop is turned on, we link against libc++ explicitly. |
| 108 | +// So also run a test where C++ interop is turned off to make sure we don't link |
110 | 109 | // against libc++ in this case.
|
111 | 110 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-ios7.1 %s 2>&1 | %FileCheck -check-prefix IOS-no-cxx-interop %s
|
112 | 111 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-ios7.1 -enable-experimental-cxx-interop %s 2>&1 | %FileCheck -check-prefix IOS-cxx-interop-libcxx %s
|
113 |
| -// RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-ios7.1 -enable-experimental-cxx-interop -experimental-cxx-stdlib libc++ %s 2>&1 | %FileCheck -check-prefix IOS-cxx-interop-libcxx %s |
114 |
| -// RUN: not %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-ios7.1 -enable-experimental-cxx-interop -experimental-cxx-stdlib libstdc++ %s 2>&1 | %FileCheck -check-prefix IOS-cxx-interop-libstdcxx %s |
115 | 112 |
|
116 | 113 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-unknown-linux-gnu -enable-experimental-cxx-interop %s 2>&1 | %FileCheck -check-prefix LINUX-cxx-interop %s
|
117 |
| -// RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-unknown-linux-gnu -enable-experimental-cxx-interop -experimental-cxx-stdlib libc++ %s 2>&1 | %FileCheck -check-prefix LINUX-cxx-interop-libcxx %s |
118 | 114 |
|
119 | 115 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-unknown-windows-msvc -enable-experimental-cxx-interop %s 2>&1 | %FileCheck -check-prefix WINDOWS-cxx-interop %s
|
120 |
| -// RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-unknown-windows-msvc -enable-experimental-cxx-interop -experimental-cxx-stdlib libc++ %s 2>&1 | %FileCheck -check-prefix WINDOWS-cxx-interop-libcxx %s |
121 | 116 |
|
122 | 117 | // Check reading the SDKSettings.json from an SDK
|
123 | 118 | // RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-apple-macosx10.9 -sdk %S/Inputs/MacOSX10.15.versioned.sdk %s 2>&1 | %FileCheck -check-prefix MACOS_10_15 %s
|
|
460 | 455 | // IOS-cxx-interop-libcxx-DAG: -lc++
|
461 | 456 | // IOS-cxx-interop-libcxx: -o linker
|
462 | 457 |
|
463 |
| -// IOS-cxx-interop-libstdcxx: error: The only C++ standard library supported on Apple platforms is libc++ |
464 |
| - |
465 | 458 | // LINUX-cxx-interop-NOT: -stdlib
|
466 | 459 |
|
467 |
| -// LINUX-cxx-interop-libcxx: swift |
468 |
| -// LINUX-cxx-interop-libcxx-DAG: -enable-experimental-cxx-interop |
469 |
| -// LINUX-cxx-interop-libcxx-DAG: -o [[OBJECTFILE:.*]] |
470 |
| - |
471 |
| -// LINUX-cxx-interop-libcxx: clang++{{(\.exe)?"? }} |
472 |
| -// LINUX-cxx-interop-libcxx-DAG: [[OBJECTFILE]] |
473 |
| -// LINUX-cxx-interop-libcxx-DAG: -stdlib=libc++ |
474 |
| -// LINUX-cxx-interop-libcxx: -o linker |
475 |
| - |
476 | 460 | // WINDOWS-cxx-interop-NOT: -stdlib
|
477 | 461 |
|
478 |
| -// WINDOWS-cxx-interop-libcxx: swift |
479 |
| -// WINDOWS-cxx-interop-libcxx-DAG: -enable-experimental-cxx-interop |
480 |
| -// WINDOWS-cxx-interop-libcxx-DAG: -o [[OBJECTFILE:.*]] |
481 |
| - |
482 |
| -// WINDOWS-cxx-interop-libcxx: clang++{{(\.exe)?"? }} |
483 |
| -// WINDOWS-cxx-interop-libcxx-DAG: [[OBJECTFILE]] |
484 |
| -// WINDOWS-cxx-interop-libcxx-DAG: -stdlib=libc++ |
485 |
| -// WINDOWS-cxx-interop-libcxx: -o linker |
486 |
| - |
487 | 462 | // Test ld detection. We use hard links to make sure
|
488 | 463 | // the Swift driver really thinks it's been moved.
|
489 | 464 |
|
|
0 commit comments