mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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.
13 lines
395 B
Swift
13 lines
395 B
Swift
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-linux-gnu -g %s | %FileCheck -check-prefix DEBUG_LINUX %s
|
|
|
|
// REQUIRES: autolink-extract
|
|
|
|
// DEBUG_LINUX: bin/swift
|
|
// DEBUG_LINUX-NEXT: bin/swift-autolink-extract
|
|
// DEBUG_LINUX-NEXT: bin/swift
|
|
// DEBUG_LINUX-NEXT: bin/swift -modulewrap
|
|
// DEBUG_LINUX-NEXT: bin/clang{{"? }}
|
|
// DEBUG_LINUX: -o main
|
|
// DEBUG_LINUX-NOT: dsymutil
|
|
|