File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ configure_file(contrib/filter-lcov.py filter-lcov.py USE_SOURCE_PERMISSIONS COPY
432432# Don't allow extended (non-ASCII) symbols in identifiers. This is easier for code review.
433433try_append_cxx_flags("-fno-extended-identifiers" TARGET core_interface SKIP_LINK)
434434
435+ try_append_cxx_flags("-ffile-prefix-map=A=B" TARGET core_interface SKIP_LINK
436+ IF_CHECK_PASSED "-ffile-prefix-map=${PROJECT_SOURCE_DIR} /src=."
437+ )
438+
435439# Currently all versions of gcc are subject to a class of bugs, see the
436440# gccbug_90348 test case (only reproduces on GCC 11 and earlier) and
437441# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111843. To work around that, set
Original file line number Diff line number Diff line change @@ -23,14 +23,6 @@ if(NOT MSVC)
2323 else ()
2424 set (WITH_CCACHE OFF )
2525 endif ()
26- if (WITH_CCACHE)
27- try_append_cxx_flags("-fdebug-prefix-map=A=B" TARGET core_interface SKIP_LINK
28- IF_CHECK_PASSED "-fdebug-prefix-map=${PROJECT_SOURCE_DIR} =."
29- )
30- try_append_cxx_flags("-fmacro-prefix-map=A=B" TARGET core_interface SKIP_LINK
31- IF_CHECK_PASSED "-fmacro-prefix-map=${PROJECT_SOURCE_DIR} =."
32- )
33- endif ()
3426endif ()
3527
3628mark_as_advanced (CCACHE_EXECUTABLE)
Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ CONFIGFLAGS="-DREDUCE_EXPORTS=ON -DBUILD_BENCH=OFF -DBUILD_GUI_TESTS=OFF -DBUILD
212212HOST_CFLAGS=" -O2 -g"
213213HOST_CFLAGS+=$( find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \; )
214214case " $HOST " in
215- * linux* ) HOST_CFLAGS+=" -ffile-prefix-map=${DISTSRC} /src=." ;;
216215 * mingw* ) HOST_CFLAGS+=" -fno-ident" ;;
217216 * darwin* ) unset HOST_CFLAGS ;;
218217esac
You can’t perform that action at this time.
0 commit comments