Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2022 15:43:01 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fc15d5bf1109 - stable/13 - sys/conf: Remove an unneeded flag variable
Message-ID:  <202212211543.2BLFh1p8025684@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=fc15d5bf11099bf04d62cf8fdd5b8ab413a61cea

commit fc15d5bf11099bf04d62cf8fdd5b8ab413a61cea
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-12-14 14:32:17 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-12-21 15:42:46 +0000

    sys/conf: Remove an unneeded flag variable
    
    After commit fac6dee9eb58 ("Remove tests for obsolete compilers in the
    build system"), we always set -fdebug-prefix-map, so there's no point in
    defining and testing _MAP_DEBUG_PREFIX.  No functional change intended.
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit ab8b2d108c7c4e63ed850148fdc237633077fcd3)
---
 sys/conf/kern.post.mk | 4 ----
 sys/conf/kmod.mk      | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index 79a6d3b516ca..fd5abb039b1a 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -349,8 +349,6 @@ ${__obj}: ${OBJS_DEPEND_GUESS.${__obj}}
 
 .depend: .PRECIOUS ${SRCS}
 
-_MAP_DEBUG_PREFIX= yes
-
 _ILINKS= machine
 .if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64"
 _ILINKS+= ${MACHINE_CPUARCH}
@@ -365,13 +363,11 @@ _ILINKS+= x86
 .if !exists(${.OBJDIR}/${_link})
 ${SRCS} ${DEPENDOBJS}: ${_link}
 .endif
-.if defined(_MAP_DEBUG_PREFIX)
 .if ${_link} == "machine"
 CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include
 .else
 CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include
 .endif
-.endif
 .endfor
 
 ${_ILINKS}:
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 9faccaf76de1..a4dafc22b2e4 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -283,8 +283,6 @@ ${FULLPROG}: ${OBJS}
 	${OBJCOPY} --strip-debug ${.TARGET}
 .endif
 
-_MAP_DEBUG_PREFIX= yes
-
 _ILINKS=machine
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
 _ILINKS+=x86
@@ -303,13 +301,11 @@ beforebuild: ${_ILINKS}
 .if !exists(${.OBJDIR}/${_link})
 OBJS_DEPEND_GUESS+=	${_link}
 .endif
-.if defined(_MAP_DEBUG_PREFIX)
 .if ${_link} == "machine"
 CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include
 .else
 CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include
 .endif
-.endif
 .endfor
 
 .NOPATH: ${_ILINKS}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212211543.2BLFh1p8025684>