CMake: Use -ffile-prefix-map to trim build directory from debug output

pull/590/head
Jonathan G Rennison 10 months ago
parent 92e632454e
commit 1e1ad66e90

@ -92,6 +92,8 @@ macro(compile_flags)
# break anything. So disable strict-aliasing to make the # break anything. So disable strict-aliasing to make the
# compiler all happy. # compiler all happy.
-fno-strict-aliasing -fno-strict-aliasing
"-ffile-prefix-map=${CMAKE_SOURCE_DIR}/=/"
) )
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)

Loading…
Cancel
Save