llvm-project/clang/lib/Driver/ToolChains
Dimitry Andric 62654cab7e Restore functionality of --sysroot on FreeBSD after b18cb9c47
After b18cb9c47, clang would sometimes prefer the host C++ includes
(e.g. in /usr/include/c++/v1) before those specified via --sysroot.
While this behavior may be desirable on Linux, it is not so on FreeBSD,
where we make extensive use of --sysroot during the build of the base
system.  In that case, clang must *not* search outside the sysroot,
except for its own internal headers.

Add an override addLibCxxIncludePaths() to restore the old behavior,
which is to simply append /usr/include/c++/v1 to the specified sysroot.
While here, apply clang-format to the FreeBSD specific toolchain files.

Fixes PR44923.
2020-02-16 01:50:06 +01:00
..
Arch [RISCV] Add support for save/restore of callee-saved registers via libcalls 2020-02-11 21:23:03 +00:00
AIX.cpp [NFC] Test commit, revert whitespace change 2020-01-06 16:28:13 -05:00
AIX.h Add AIX assembler support 2019-12-02 11:29:36 -05:00
AMDGPU.cpp Separately track input and output denormal mode 2020-02-04 12:59:21 -05:00
AMDGPU.h Consolidate internal denormal flushing controls 2020-01-17 20:09:53 -05:00
AVR.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
AVR.h [AVR] Automatically link CRT and libgcc from the system avr-gcc 2019-05-19 09:54:14 +00:00
Ananas.cpp [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
Ananas.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BareMetal.cpp [clang] stop baremetal driver to append .a to lib 2020-02-13 11:08:46 +00:00
BareMetal.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Clang.cpp Revert "Reland D74436 "Change clang option -ffp-model=precise to select ffp-contract=on"" 2020-02-14 07:32:09 -08:00
Clang.h [Clang][OpenMP Offload] Add new tool for wrapping offload device binaries 2019-10-09 20:42:58 +00:00
CloudABI.cpp [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
CloudABI.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommonArgs.cpp [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
CommonArgs.h [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
Contiki.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Contiki.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CrossWindows.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
CrossWindows.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Cuda.cpp Separately track input and output denormal mode 2020-02-04 12:59:21 -05:00
Cuda.h Consolidate internal denormal flushing controls 2020-01-17 20:09:53 -05:00
Darwin.cpp [driver][Darwin] Add an -ibuiltininc flag that lets Darwin driver 2020-01-28 18:18:43 -08:00
Darwin.h [driver][darwin] Pass -platform_version flag to the linker instead of the -<platform>_version_min flag 2019-12-17 10:26:32 -08:00
DragonFly.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
DragonFly.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Flang.cpp [clang][driver] Add basic --driver-mode=flang support for fortran 2019-10-30 10:42:22 +00:00
Flang.h [clang][driver] Add basic --driver-mode=flang support for fortran 2019-10-30 10:42:22 +00:00
FreeBSD.cpp Restore functionality of --sysroot on FreeBSD after b18cb9c47 2020-02-16 01:50:06 +01:00
FreeBSD.h Restore functionality of --sysroot on FreeBSD after b18cb9c47 2020-02-16 01:50:06 +01:00
Fuchsia.cpp [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
Fuchsia.h [Driver] Derive Fuchsia Linker directly from Tool 2019-08-05 01:36:51 +00:00
Gnu.cpp [Driver] Rename AddGoldPlugin to addLTOOptions. NFC 2020-02-14 08:06:37 -08:00
Gnu.h [Gnu toolchain] Look at standard GCC paths for libstdcxx by default 2020-01-05 21:43:18 +00:00
HIP.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
HIP.h [AMDGPU][HIP] Change default DWARF version to 4 2019-11-14 11:51:11 -05:00
Haiku.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Haiku.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Hexagon.cpp [Hexagon] Add support for Hexagon v67t microarchitecture (tiny core) 2020-01-21 11:35:10 -06:00
Hexagon.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Hurd.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Hurd.h [Gnu toolchain] Look at standard GCC paths for libstdcxx by default 2020-01-05 21:43:18 +00:00
InterfaceStubs.cpp [clang][IFS] Ignoring -Xlinker/-Xclang arguments in InterfaceStubs pass for now. 2019-12-04 20:03:57 -05:00
InterfaceStubs.h [clang][ifs] Clang Interface Stubs ToolChain plumbing. 2019-10-08 15:23:14 +00:00
Lanai.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Linux.cpp clang: Guess at some platform FTZ/DAZ default settings 2020-02-12 12:09:26 -05:00
Linux.h clang: Guess at some platform FTZ/DAZ default settings 2020-02-12 12:09:26 -05:00
MSP430.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MSP430.h Disable PIC/PIE for MSP430 target 2019-02-12 20:46:00 +00:00
MSVC.cpp [Driver] Fix implicit conversion guarded by #ifdef _WIN32 2020-01-29 00:18:45 +01:00
MSVC.h [MSVC] Automatically add atlmfc folder to include and libpath. 2019-10-10 20:25:54 +00:00
MSVCSetupApi.h
MinGW.cpp clang: Guess at some platform FTZ/DAZ default settings 2020-02-12 12:09:26 -05:00
MinGW.h The MinGW linker supports response files 2019-08-02 22:55:00 +00:00
Minix.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Minix.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MipsLinux.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MipsLinux.h [Driver] Support object files in addition to static and shared libraries in compiler-rt 2019-03-12 02:12:48 +00:00
Myriad.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Myriad.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
NaCl.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
NaCl.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
NetBSD.cpp Default to -fuse-init-array 2019-12-12 10:32:56 -08:00
NetBSD.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OpenBSD.cpp Default to -fuse-init-array 2019-12-12 10:32:56 -08:00
OpenBSD.h Default to -fuse-init-array 2019-12-12 10:32:56 -08:00
PPCLinux.cpp [PowerPC] [Clang] Add platform guards to PPC vector intrinsics headers 2019-07-30 02:18:11 +00:00
PPCLinux.h [PowerPC] [Clang] Port MMX intrinsics and basic test cases to Power 2019-04-23 05:50:24 +00:00
PS4CPU.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PS4CPU.h clang: Guess at some platform FTZ/DAZ default settings 2020-02-12 12:09:26 -05:00
RISCVToolchain.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
RISCVToolchain.h [RISCV] Use compiler-rt if no GCC installation detected 2019-11-22 20:05:29 +00:00
Solaris.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Solaris.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TCE.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TCE.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WebAssembly.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
WebAssembly.h [WebAssembly] Support VPtr sanitizer for Emscripten 2019-05-29 18:31:50 +00:00
XCore.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
XCore.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00