Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Warn when "make build" is started with USE_NEW_TOOLCHAIN on ...



details:   https://anonhg.NetBSD.org/src/rev/393b4573bee8
branches:  trunk
changeset: 517596:393b4573bee8
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Nov 15 19:32:19 2001 +0000

description:
Warn when "make build" is started with USE_NEW_TOOLCHAIN on a platform for
which USE_NEW_TOOLCHAIN is not verified to work [is not on by default].

diffstat:

 Makefile |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 4b3a66779813 -r 393b4573bee8 Makefile
--- a/Makefile  Thu Nov 15 19:24:07 2001 +0000
+++ b/Makefile  Thu Nov 15 19:32:19 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.155 2001/11/13 17:47:16 tv Exp $
+#      $NetBSD: Makefile,v 1.156 2001/11/15 19:32:19 tv Exp $
 
 # This is the top-level makefile for building NetBSD. For an outline of
 # how to build a snapshot or release, as well as other release engineering
@@ -102,6 +102,7 @@
 
 # Targets (in order!) called by "make build".
 
+BUILDTARGETS+= check-tools
 .if !defined(UPDATE) && !defined(NOCLEANDIR)
 BUILDTARGETS+= cleandir
 .endif
@@ -133,7 +134,7 @@
 .else
        @echo -n "Build started at: " && date
 .for tgt in ${BUILDTARGETS}
-       (cd ${.CURDIR} && ${MAKE} ${_J} ${tgt})
+       @(cd ${.CURDIR} && ${MAKE} ${_J} ${tgt})
 .endfor
        @echo -n "Build finished at: " && date
 .endif
@@ -145,6 +146,13 @@
 
 # Special components of the "make build" process.
 
+check-tools:
+.if defined(USE_NEW_TOOLCHAIN) && (${USE_NEW_TOOLCHAIN} != "nowarn")
+       @echo '*** WARNING:  Building on MACHINE=${MACHINE} with USE_NEW_TOOLCHAIN.'
+       @echo '*** This platform is not yet verified to work with the new toolchain,'
+       @echo '*** and may result in a failed build or corrupt binaries!'
+.endif
+
 do-distrib-dirs:
 .if !defined(DESTDIR) || ${DESTDIR} == ""
        (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)



Home | Main Index | Thread Index | Old Index