build: Temporarily remove confusing and brittle -fdebug-prefix-map
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-3
@@ -488,9 +488,8 @@ try_append_cxx_flags("-fno-extended-identifiers" TARGET core_interface SKIP_LINK
|
|||||||
# which can cause issues with coverage builds, particularly when using
|
# which can cause issues with coverage builds, particularly when using
|
||||||
# Clang in the OSS-Fuzz environment due to its use of other options
|
# Clang in the OSS-Fuzz environment due to its use of other options
|
||||||
# and a third party script, or with GCC.
|
# and a third party script, or with GCC.
|
||||||
try_append_cxx_flags("-fdebug-prefix-map=A=B" TARGET core_interface SKIP_LINK
|
# Set `-fmacro-prefix-map`, so that source file names are expanded without the
|
||||||
IF_CHECK_PASSED "-fdebug-prefix-map=${PROJECT_SOURCE_DIR}/src=."
|
# src prefix.
|
||||||
)
|
|
||||||
try_append_cxx_flags("-fmacro-prefix-map=A=B" TARGET core_interface SKIP_LINK
|
try_append_cxx_flags("-fmacro-prefix-map=A=B" TARGET core_interface SKIP_LINK
|
||||||
IF_CHECK_PASSED "-fmacro-prefix-map=${PROJECT_SOURCE_DIR}/src=."
|
IF_CHECK_PASSED "-fmacro-prefix-map=${PROJECT_SOURCE_DIR}/src=."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ CONFIGFLAGS="-DREDUCE_EXPORTS=ON -DBUILD_BENCH=OFF -DBUILD_GUI_TESTS=OFF -DBUILD
|
|||||||
# CFLAGS
|
# CFLAGS
|
||||||
HOST_CFLAGS="-O2 -g"
|
HOST_CFLAGS="-O2 -g"
|
||||||
HOST_CFLAGS+=$(find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;)
|
HOST_CFLAGS+=$(find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;)
|
||||||
|
HOST_CFLAGS+=" -fdebug-prefix-map=${DISTSRC}/src=."
|
||||||
case "$HOST" in
|
case "$HOST" in
|
||||||
*mingw*) HOST_CFLAGS+=" -fno-ident" ;;
|
*mingw*) HOST_CFLAGS+=" -fno-ident" ;;
|
||||||
*darwin*) unset HOST_CFLAGS ;;
|
*darwin*) unset HOST_CFLAGS ;;
|
||||||
|
|||||||
Reference in new issue
Block a user