HomeFreeBSD

Add fileprefixmap compiler feature

Description

Add fileprefixmap compiler feature

-ffile-prefix-map=<old>=<new> is a compiler feature first added in
GCC 8, and implemented for clang 10. It remaps old paths to new paths
in both debug information and FILE and BASE_FILE macros. It can
be used to improve reproducibility or to hide local system directories.

I intend to use it to replace the real source directory and real object
directory with constant values across all builds.

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D28632

Details

Provenance
dan.mcgregor_usask.caAuthored on Feb 17 2021, 10:26 PM
brooksCommitted on Feb 17 2021, 10:26 PM
Reviewer
brooks
Differential Revision
D28632: Add fileprefixmap compiler feature
Parents
rG955b6109bb36: uart: only use MSI on devices that advertise 1 MSI vector
Branches
Unknown
Tags
Unknown