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 @@ -436,6 +436,10 @@ configure_file(contrib/filter-lcov.py filter-lcov.py USE_SOURCE_PERMISSIONS COPY
436
436
# Don't allow extended (non-ASCII) symbols in identifiers. This is easier for code review.
437
437
try_append_cxx_flags ("-fno-extended-identifiers" TARGET core_interface SKIP_LINK )
438
438
439
+ try_append_cxx_flags ("-ffile-prefix-map=A=B" TARGET core_interface SKIP_LINK
440
+ IF_CHECK_PASSED "-ffile-prefix-map=${PROJECT_SOURCE_DIR} /src=."
441
+ )
442
+
439
443
# Currently all versions of gcc are subject to a class of bugs, see the
440
444
# gccbug_90348 test case (only reproduces on GCC 11 and earlier) and
441
445
# 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)
23
23
else ()
24
24
set (WITH_CCACHE OFF )
25
25
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 ()
34
26
endif ()
35
27
36
28
mark_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
212
212
HOST_CFLAGS=" -O2 -g"
213
213
HOST_CFLAGS+=$( find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \; )
214
214
case " $HOST " in
215
- * linux* ) HOST_CFLAGS+=" -ffile-prefix-map=${DISTSRC} /src=." ;;
216
215
* mingw* ) HOST_CFLAGS+=" -fno-ident" ;;
217
216
* darwin* ) unset HOST_CFLAGS ;;
218
217
esac
You can’t perform that action at this time.
0 commit comments