Skip to content

Commit 6ff25fb

Browse files
committed
[ReleaseNotes] Mention -fmacro-prefix-map and -ffile-prefix-map.
Differential revision: https://reviews.llvm.org/D75012
1 parent a8684e9 commit 6ff25fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ New Compiler Flags
151151
`-mcmodel=small` and `-mcmodel=medium` respectively. Preprocessor definitions
152152
for `__riscv_cmodel_medlow` and `__riscv_cmodel_medany` have been corrected.
153153

154+
- ``-fmacro-prefix-map=OLD=NEW`` substitutes directory prefix ``OLD`` for
155+
``NEW`` in predefined preprocessor macros such as ``__FILE__``. This helps
156+
with reproducible builds that are location independent. The new
157+
``-ffile-prefix-map`` option is equivalent to specifying both
158+
``-fdebug-prefix-map`` and ``-fmacro-prefix-map``.
159+
154160
Deprecated Compiler Flags
155161
-------------------------
156162

0 commit comments

Comments
 (0)