mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Turns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
set the variable until you rebuild it, and the alternative is to be stuck playing games with ``.if defined(MACHINE_CPU) && ... '' for all eternity. We now set up the reasonable default for i386 and alpha here -- given this it probably makes sense to remove the corresponding code from make(1).
This commit is contained in:
parent
5fe86675f0
commit
9cd5532f9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72751
@ -104,6 +104,16 @@ YFLAGS ?= -d
|
||||
# as an i386 architecture.
|
||||
MACHINE_ARCH ?= i386
|
||||
|
||||
# MACHINE_CPU contains a list of CPU generations for which
|
||||
# CPU-specific optimizations are desired. This must be set here
|
||||
# to allow bootstrapping from old versions of make which do not
|
||||
# set MACHINE_CPU.
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
MACHINE_CPU ?= i386
|
||||
.elif ${MACHINE_ARCH} == "alpha"
|
||||
MACHINE_CPU ?= ev4
|
||||
.endif
|
||||
|
||||
# For tags rule.
|
||||
GTAGSFLAGS= -o
|
||||
HTAGSFLAGS=
|
||||
|
Loading…
Reference in New Issue
Block a user