llvm-project/clang/lib
Nico Weber 37b7533682 Promote -fdebug-compilation-dir from a cc1 flag to clang and clang-cl driver flags
The flag is useful when wanting to create .o files that are independent
from the absolute path to the build directory. -fdebug-prefix-map= can
be used to the same effect, but it requires putting the absolute path
to the build directory on the build command line, so it still requires
the build command line to be dependent on the absolute path of the build
directory. With this flag, "-fdebug-compilation-dir ." makes it so that
both debug info and the compile command itself are independent of the
absolute path of the build directory, which is good for build
determinism (in the sense that the build is independent of which
directory it happens in) and for caching compile results.
(The tradeoff is that the debugger needs explicit configuration to know
the build directory. See also http://dwarfstd.org/ShowIssue.php?issue=171130.2)

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

llvm-svn: 363548
2019-06-17 12:10:40 +00:00
..
ARCMigrate [PlistSupport] Produce a newline to end plist output files 2019-06-10 22:30:57 +00:00
AST [clang] Add storage for APValue in ConstantExpr 2019-06-15 10:24:47 +00:00
ASTMatchers Added AST matcher for ignoring elidable constructors 2019-06-13 13:48:24 +00:00
Analysis [analyzer] ProgramPoint: more explicit printJson() 2019-06-12 18:24:02 +00:00
Basic [Targets] Move soft-float-abi filtering to `initFeatureMap` 2019-06-14 00:35:17 +00:00
CodeGen [Clang] Harmonize Split DWARF options with llc 2019-06-15 15:38:51 +00:00
CrossTU [ASTImporter] Use llvm::Expected and Error in the importer API 2019-05-15 10:29:48 +00:00
Driver Promote -fdebug-compilation-dir from a cc1 flag to clang and clang-cl driver flags 2019-06-17 12:10:40 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format clang-format: better handle namespace macros 2019-06-06 20:06:23 +00:00
Frontend [Clang] Harmonize Split DWARF options with llc 2019-06-15 15:38:51 +00:00
FrontendTool Add clang source minimizer that reduces source to directives 2019-06-03 22:59:17 +00:00
Headers [PowerPC] [Clang] Port SSE2 intrinsics to PowerPC 2019-06-12 05:25:40 +00:00
Index [Index] Compute correct symbol kind for variable templates 2019-05-29 17:49:30 +00:00
Lex [clang][HeaderSearch] Consider all path separators equal 2019-06-06 18:49:16 +00:00
Parse [C++20] add Basic consteval specifier 2019-06-14 08:56:20 +00:00
Rewrite [analyzer] [NFC] PathDiagnostic: Create PathDiagnosticPopUpPiece 2019-05-29 19:21:59 +00:00
Sema Recommit [OpenCL] Move OpenCLBuiltins.td and remove unused include 2019-06-17 10:06:34 +00:00
Serialization [clang] Add storage for APValue in ConstantExpr 2019-06-15 10:24:47 +00:00
StaticAnalyzer [analyzer] Push correct version of 'Track indices of arrays' 2019-06-16 15:41:25 +00:00
Tooling [LibTooling] Add `before` and `after` selectors for selecting point-ranges relative to nodes. 2019-05-29 12:40:36 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00