mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
For kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to
use the -mprofiler-epilogue option if the compiler is clang, as the flag is not supported. While here, fix up the value indentations. MFC after: 1 week
This commit is contained in:
parent
dc9c386cd0
commit
5387021768
1 changed files with 5 additions and 2 deletions
|
|
@ -108,9 +108,12 @@ CFLAGS+= -falign-functions=16
|
|||
.endif
|
||||
.if ${PROFLEVEL} >= 2
|
||||
CFLAGS+= -DGPROF4 -DGUPROF
|
||||
PROF= -pg -mprofiler-epilogue
|
||||
PROF= -pg
|
||||
.if ${COMPILER_TYPE} != "clang"
|
||||
PROF+= -mprofiler-epilogue
|
||||
.endif
|
||||
.else
|
||||
PROF= -pg
|
||||
PROF= -pg
|
||||
.endif
|
||||
.endif
|
||||
DEFINED_PROF= ${PROF}
|
||||
|
|
|
|||
Loading…
Reference in a new issue