gcc-for-nvcc: update DEBUG_PREFIX_MAP

The default prefix map settings have switched to using -ffile-prefix-map,
but the gcc 10 compiler we're building here needs the old -fmacro-prefix-map
and -fdebug-prefix-map settings, so add them back in for these recipes.

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2025-05-01 07:02:11 -07:00
parent ba4e5cfbb9
commit 0b583424b9

View File

@@ -2,6 +2,16 @@ require gcc-for-nvcc-multilib-config.inc
require gcc-for-nvcc-shared-source.inc
DEBUG_PREFIX_MAP:remove:class-target = "-fcanon-prefix-map"
DEBUG_PREFIX_MAP:append:class-target = "\
-fmacro-prefix-map=${S}=${TARGET_DBGSRC_DIR} \
-fdebug-prefix-map=${S}=${TARGET_DBGSRC_DIR} \
-fmacro-prefix-map=${B}=${TARGET_DBGSRC_DIR} \
-fdebug-prefix-map=${B}=${TARGET_DBGSRC_DIR} \
-fdebug-prefix-map=${STAGING_DIR_HOST}= \
-fmacro-prefix-map=${STAGING_DIR_HOST}= \
-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
-fmacro-prefix-map=${STAGING_DIR_NATIVE}= \
"
#
# Build the list of lanaguages to build.