llvm-project/llvm/lib
Marcos Pividori 3984eb4ad0 [libFuzzer] Use clang as linker on Windows, to properly include sanitizer libraries.
In order to use sanitizers on Windows, we need to link against many runtime
libraries which will depend on the target being created (executable or dll) and
the c runtime library used (MT/MD).
By default, cmake uses link.exe for linking, which fails because we don't
specify the appropiate dependencies. As we don't want to consider all of that
possible situations which depends on the implementation of the compiler-rt, the
simplest option is to change the rules for linking executables and shared
libraries, using the compiler instead of link.exe.
Clang driver will consider the sanitizer flags, and automatically provide the
required libraries to the linker.

Differential Revision: https://reviews.llvm.org/D27869

llvm-svn: 292669
2017-01-20 22:49:08 +00:00
..
Analysis Improve PGO support for the new inliner 2017-01-20 22:44:04 +00:00
AsmParser ASMParser: use range-based for loops (NFC) 2016-12-27 18:35:22 +00:00
Bitcode [ThinLTO] Fix lazy-loading of MDString instruction attachments 2017-01-20 20:29:16 +00:00
CodeGen [mips] Fix debug information for __thread variable 2017-01-20 17:53:30 +00:00
DebugInfo [pdb] Write the Named Stream mapping to Yaml and binary. 2017-01-20 22:42:09 +00:00
Demangle Revert "Demangle: only demangle mangled symbols" 2017-01-20 03:54:04 +00:00
ExecutionEngine [Orc][RPC] Add an RPCFunctionNotSupported error type and return it from 2017-01-15 06:34:25 +00:00
Fuzzer [libFuzzer] Use clang as linker on Windows, to properly include sanitizer libraries. 2017-01-20 22:49:08 +00:00
IR Reverted: Track validity of pass results 2017-01-15 10:23:18 +00:00
IRReader Timer: Track name and description. 2016-11-18 19:43:18 +00:00
LTO [ThinLTO] The "codegen only" path didn't honor the recently added file-based API 2017-01-20 22:45:34 +00:00
LibDriver LibDriver: Allow resource files to be archive members. 2016-12-15 19:37:46 +00:00
LineEditor
Linker [ThinLTO] Import only necessary DICompileUnit fields 2016-12-12 16:09:30 +00:00
MC [Assembler] Improve error when unable to evaluate expression. 2017-01-19 20:06:32 +00:00
Object Add support for the new LC_NOTE load command. 2017-01-19 17:36:31 +00:00
ObjectYAML [DWARF] [ObjectYAML] Adding APIs for unittesting 2017-01-20 19:03:14 +00:00
Option Generalize ArgList::AddAllArgs more 2016-09-29 19:47:58 +00:00
Passes [PM] Port LoopSink to the new pass manager. 2017-01-20 08:42:19 +00:00
ProfileData [WebAssembly] Add triple support for the new wasm object format 2017-01-17 20:34:09 +00:00
Support raw_fd_ostream: Make file handles non-inheritable by default 2017-01-18 15:46:50 +00:00
TableGen [Hexagon, TableGen] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-04 02:02:05 +00:00
Target AMDGPU/R600: Serialize vector trunc stores to private AS 2017-01-20 21:24:26 +00:00
Transforms Improve PGO support for the new inliner 2017-01-20 22:44:04 +00:00
XRay Avoid std::errc::protocol_* to appease mingw 2017-01-12 18:33:14 +00:00
CMakeLists.txt [XRay] Define the library for XRay trace logs 2017-01-11 06:39:09 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00