Set CSTD in all cases except when CC=icc and NO_WARNS is set. This
way we can set desired C standard even for cross tools etc. Tested by: make universe Approved by: ed (maintainer) OK by: das
This commit is contained in:
parent
c0d232d988
commit
9448b439ec
@ -11,7 +11,7 @@
|
||||
# the default is gnu99 for now
|
||||
CSTD ?= gnu99
|
||||
|
||||
.if !defined(NO_WARNS) && ${CC} != "icc"
|
||||
.if !defined(NO_WARNS) || ${CC} != "icc"
|
||||
. if ${CSTD} == "k&r"
|
||||
CFLAGS += -traditional
|
||||
. elif ${CSTD} == "c89" || ${CSTD} == "c90"
|
||||
|
Loading…
Reference in New Issue
Block a user