[llvm-branch-commits] [clang] 6ff25fb - [ReleaseNotes] Mention -fmacro-prefix-map and -ffile-prefix-map.
Peter Wu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 27 06:16:25 PST 2020
Author: Peter Wu
Date: 2020-02-27T15:11:47+01:00
New Revision: 6ff25fbe749efca9faf1fc0a9d30e51272ce0653
URL: https://github.com/llvm/llvm-project/commit/6ff25fbe749efca9faf1fc0a9d30e51272ce0653
DIFF: https://github.com/llvm/llvm-project/commit/6ff25fbe749efca9faf1fc0a9d30e51272ce0653.diff
LOG: [ReleaseNotes] Mention -fmacro-prefix-map and -ffile-prefix-map.
Differential revision: https://reviews.llvm.org/D75012
Added:
Modified:
clang/docs/ReleaseNotes.rst
Removed:
################################################################################
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index c9d0461b65aa..d959791d75b6 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -151,6 +151,12 @@ New Compiler Flags
`-mcmodel=small` and `-mcmodel=medium` respectively. Preprocessor definitions
for `__riscv_cmodel_medlow` and `__riscv_cmodel_medany` have been corrected.
+- ``-fmacro-prefix-map=OLD=NEW`` substitutes directory prefix ``OLD`` for
+ ``NEW`` in predefined preprocessor macros such as ``__FILE__``. This helps
+ with reproducible builds that are location independent. The new
+ ``-ffile-prefix-map`` option is equivalent to specifying both
+ ``-fdebug-prefix-map`` and ``-fmacro-prefix-map``.
+
Deprecated Compiler Flags
-------------------------
More information about the llvm-branch-commits
mailing list