File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,16 @@ configure_file(contrib/filter-lcov.py filter-lcov.py USE_SOURCE_PERMISSIONS COPY
438
438
# Don't allow extended (non-ASCII) symbols in identifiers. This is easier for code review.
439
439
try_append_cxx_flags ("-fno-extended-identifiers" TARGET core_interface SKIP_LINK )
440
440
441
- try_append_cxx_flags ("-ffile-prefix-map=A=B" TARGET core_interface SKIP_LINK
442
- IF_CHECK_PASSED "-ffile-prefix-map=${PROJECT_SOURCE_DIR} /src=."
441
+ # Avoiding the `-ffile-prefix-map` compiler option because it implies
442
+ # `-fcoverage-prefix-map` on Clang or `-fprofile-prefix-map` on GCC,
443
+ # which can cause issues with coverage builds, particularly when using
444
+ # Clang in the OSS-Fuzz environment due to its use of other options
445
+ # and a third party script, or with GCC.
446
+ try_append_cxx_flags ("-fdebug-prefix-map=A=B" TARGET core_interface SKIP_LINK
447
+ IF_CHECK_PASSED "-fdebug-prefix-map=${PROJECT_SOURCE_DIR} /src=."
448
+ )
449
+ try_append_cxx_flags ("-fmacro-prefix-map=A=B" TARGET core_interface SKIP_LINK
450
+ IF_CHECK_PASSED "-fmacro-prefix-map=${PROJECT_SOURCE_DIR} /src=."
443
451
)
444
452
445
453
# Currently all versions of gcc are subject to a class of bugs, see the
You can’t perform that action at this time.
0 commit comments