Commit Graph

4 Commits

Author SHA1 Message Date
Saleem Abdulrasool
67475dced4 Driver: avoid linking against the C++ runtime
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.
2019-07-24 19:48:02 -07:00
David Zarzycki
ccaabd9be1 [Testing QoI] Make the Windows link job test more robust
Create a fake install location to ensure that the path to `clang++` is
not hard coded.
2019-07-08 11:25:27 +02:00
David Zarzycki
7e29bbf59c [Testing] Do not assume unqualified path to clang++
Without this change, unified builds are broken on my Linux workstation
(Fedora 30, x86-64).
2019-07-04 08:43:00 +02:00
Saleem Abdulrasool
133e1f2c14 Driver: emit a diagnostic if clang++ is not found
Rather than aborting due to an assertion failure, emit a diagnostic.
This is much safer and generally easier to understand why the command
failed.  It solves the problem of running swiftc from the build without
the path being set such that the clang++ driver is found by the swift
driver.
2019-07-02 10:20:54 -07:00