llvm-project/clang/lib/Driver
Petr Hosek 03142c5f67 [Driver] Correctly handle static C++ standard library
When statically linking C++ standard library, we shouldn't add -Bdynamic
after including the library on the link line because that might override
user settings like -static and -static-pie. Rather, we should surround
the library with --push-state/--pop-state to make sure that -Bstatic
only applies to C++ standard library and nothing else. This has been
supported since GNU ld 2.25 (2014) so backwards compatibility should
no longer be a concern.

Differential Revision: https://reviews.llvm.org/D110128
2021-09-24 00:40:16 -07:00
..
ToolChains [Driver] Correctly handle static C++ standard library 2021-09-24 00:40:16 -07:00
Action.cpp [CUDA][HIP] Add -fuse-cuid 2021-02-08 22:26:12 -05:00
CMakeLists.txt [clang] NFC, move DarwinSDKInfo to lib/Basic 2021-07-20 13:22:48 -07:00
Compilation.cpp [clang] Remove redundant calls to c_str() (NFC) 2021-08-31 08:53:51 -07:00
Distro.cpp Add support of the future Debian (Debian 12 - Bookworm) 2021-08-16 09:11:31 +02:00
Driver.cpp [HIP] Diagnose -fopenmp-targets for HIP programs 2021-09-15 13:03:57 -04:00
DriverOptions.cpp
Job.cpp [clang][driver] NFC: Expose InputInfo in Job instead of plain filenames 2021-07-27 09:18:58 +02:00
Multilib.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
OptionUtils.cpp [NFC] Move OptionUtils from Basic to Driver 2019-12-23 08:11:23 -05:00
Phases.cpp [clang][ifs] Clang Interface Stubs ToolChain plumbing. 2019-10-08 15:23:14 +00:00
SanitizerArgs.cpp [asan][clang] Add flag to outline instrumentation 2021-07-14 13:36:34 -07:00
Tool.cpp [clang][driver] NFC: Move InputInfo.h from lib to include 2021-07-27 09:17:39 +02:00
ToolChain.cpp [clang][darwin] Add support for --emit-static-lib 2021-09-17 12:11:05 -07:00
Types.cpp [Preprocessor] Implement -fminimize-whitespace. 2021-07-25 23:30:57 -05:00
XRayArgs.cpp [xray] Function coverage groups 2020-09-24 22:09:53 -04:00