Embellish rev 1.61. If we're not building a debug kernel, use -O2 as before.
Submitted by: ru
This commit is contained in:
parent
eca64e79b5
commit
4d28b4d206
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140606
@ -17,12 +17,17 @@ OBJCOPY?= objcopy
|
||||
SIZE?= size
|
||||
|
||||
.if ${CC} == "icc"
|
||||
COPTFLAGS?=-O
|
||||
COPTFLAGS?= -O
|
||||
.else
|
||||
. if defined(DEBUG)
|
||||
_MINUS_O= -O
|
||||
. else
|
||||
_MINUS_O= -O2
|
||||
. endif
|
||||
. if ${MACHINE_ARCH} == "amd64"
|
||||
COPTFLAGS?=-O2 -frename-registers -pipe
|
||||
. else
|
||||
COPTFLAGS?=-O -pipe
|
||||
COPTFLAGS?=${_MINUS_O} -pipe
|
||||
. endif
|
||||
. if ${COPTFLAGS:M-O[23s]} != ""
|
||||
COPTFLAGS+= -fno-strict-aliasing
|
||||
|
Loading…
Reference in New Issue
Block a user