mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
For kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to
use the -falign-functions option if the compiler is clang, as the flag is not supported. MFC after: 1 week
This commit is contained in:
parent
a7ad6026e0
commit
c859a75e85
1 changed files with 4 additions and 1 deletions
|
|
@ -102,7 +102,10 @@ CLANG_NO_IAS= -no-integrated-as
|
|||
.endif
|
||||
|
||||
.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
|
||||
CFLAGS+= -DGPROF -falign-functions=16
|
||||
CFLAGS+= -DGPROF
|
||||
.if ${COMPILER_TYPE} != "clang"
|
||||
CFLAGS+= -falign-functions=16
|
||||
.endif
|
||||
.if ${PROFLEVEL} >= 2
|
||||
CFLAGS+= -DGPROF4 -DGUPROF
|
||||
PROF= -pg -mprofiler-epilogue
|
||||
|
|
|
|||
Loading…
Reference in a new issue