diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2019-07-16 13:04:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 21:00:09 -0400 |
commit | bb056174146ae01448e0281ea204d2ddd60ebe3c (patch) | |
tree | 292a692ebe8fc83fda0cb4a7f869c6c6871fc172 /rootston/desktop.c | |
parent | 9e8f952997d9e37ccc97aded89e16d52dfd46e60 (diff) |
Use -fmacro-prefix-map to strip build path
This commit matches sway's 2dc4978d8af326c310057ca8fd22a4c7f5d09335.
To help ensure a reproducible build (when debug info is disabled),
the meson build script now uses the -fmacro-prefix-map command line
argument supported by GCC to strip the build-path dependent bytes
of each __FILE__ string used by wlr_log and related functions.
A rather ugly algorithm is used to compute the relative path between
the build and source folders, because meson has no specific function
for this.
When the compiler does not support -fmacro-prefix-map, fall back
to shifting the start of each __FILE__ string by the length of the
relative path to the source directory.
Diffstat (limited to 'rootston/desktop.c')
0 files changed, 0 insertions, 0 deletions