summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/buildenv/debugflags.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/buildenv/debugflags.sh.in')
-rw-r--r--scripts/libmakepkg/buildenv/debugflags.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/libmakepkg/buildenv/debugflags.sh.in b/scripts/libmakepkg/buildenv/debugflags.sh.in
index ce9c1556..4cd5d003 100644
--- a/scripts/libmakepkg/buildenv/debugflags.sh.in
+++ b/scripts/libmakepkg/buildenv/debugflags.sh.in
@@ -32,7 +32,9 @@ buildenv_debugflags() {
if check_option "debug" "y"; then
DEBUG_CFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
DEBUG_CXXFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
+ DEBUG_RUSTFLAGS+=" --remap-path-prefix=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
CFLAGS+=" $DEBUG_CFLAGS"
CXXFLAGS+=" $DEBUG_CXXFLAGS"
+ RUSTFLAGS+=" $DEBUG_RUSTFLAGS"
fi
}