mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use `clang` rather than `clang++` as the linker driver. This ensures that we do not force a C++ runtime on the general code. This is fine for now as C++ interop is not yet available for Swift. This prevents the accidental mix-and-match of various C++ runtimes. This can cause problems on platforms like android where `libstdc++` is an unsupported runtime but is generally the default for Linux platforms.
5 lines
300 B
Swift
5 lines
300 B
Swift
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-linux-gnu -v %s 2>&1 | %FileCheck %s -check-prefix=VERBOSE_CLANG
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-windows-msvc -v %s 2>&1 | %FileCheck %s -check-prefix=VERBOSE_CLANG
|
|
|
|
// VERBOSE_CLANG: clang{{.*}} -v -o
|