aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Manuel Stoeckl <code@mstoeckl.com>2019-06-22 23:13:19 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-07-15 16:35:50 -0400
commit2dc4978d8af326c310057ca8fd22a4c7f5d09335 (patch)
treee49b4d10481309d90bd5330b7bbeec588f4de88c /sway/tree/view.c
parentLayout tiled using a width/height fraction (diff)
downloadsway-2dc4978d8af326c310057ca8fd22a4c7f5d09335.tar.gz
sway-2dc4978d8af326c310057ca8fd22a4c7f5d09335.tar.zst
sway-2dc4978d8af326c310057ca8fd22a4c7f5d09335.zip
Use -fmacro-prefix-map to strip build path
Because meson does not provide a simple way to get the relative build path, it is computed with a pair of foreach loops. As meson does not have a simple way to compute string length (except via underscorify and 63 split operations), the build script uses a shell command instead. If the compiler does not suppot -fmacro-prefix-map, then fall back to passing in the relative path prefix, and use its length to offset the uses of __FILE__ in log messages so that the build path is at least still not included in the logs. This is significantly more efficient than calling _sway_strip_path.
Diffstat (limited to 'sway/tree/view.c')
0 files changed, 0 insertions, 0 deletions