Commit Graph

4 Commits

Author SHA1 Message Date
Đoàn Trần Công Danh 3dcac23aff environment: set -ffile-prefix-map
We're setting -fdebug-prefix-map to strip directory prefixes from debug
info, which will help ccache and reproducibility.

However, -fdebug-prefix-map doesn't help with those macros like __FILE__
and __BASE_FILE__, which needs another flags: -fmacro-prefix-map.

Replaces -fdebug-prefix-map with -ffile-prefix-map which is an alias for
both `-fdebug-prefix-map` and `-fmacro-prefix-map`. (This flag is
available since GCC 8 and Clang 10)
2023-01-05 08:23:26 +07:00
Đoàn Trần Công Danh ddb9e6eb19 environment: set -fdebug-prefix-map relative to build_wrksrc 2022-09-18 20:37:21 +07:00
Đoàn Trần Công Danh 95159532cc C{,XX}FLAGS: change -fdebug-prefix-map for cmake and meson
Both of them build inside a builddir. This change ease the debugging
process.
2022-09-18 20:37:21 +07:00
John ca73e4b1d2
common/environment: set debug-prefix-map to prevent ccache cache misses
Packages with debug symbols do invalidate their cache with every version
change since $wrksrc does contain the version number and is getting cached

Closes: #33002 [via git-merge-pr]
2021-12-08 13:04:22 +01:00