From 1e1ad66e9030c90f56840d9658be4ff543e8e2a2 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 16 Aug 2023 16:05:12 +0100 Subject: [PATCH] CMake: Use -ffile-prefix-map to trim build directory from debug output --- cmake/CompileFlags.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 9510e1f6bf..e7bd698104 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -92,6 +92,8 @@ macro(compile_flags) # break anything. So disable strict-aliasing to make the # compiler all happy. -fno-strict-aliasing + + "-ffile-prefix-map=${CMAKE_SOURCE_DIR}/=/" ) if(NOT CMAKE_BUILD_TYPE)