Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | |||||
CFLAGS.clang+= -Qunused-arguments | CFLAGS.clang+= -Qunused-arguments | ||||
# The libc++ headers use c++11 extensions. These are normally silenced because | # The libc++ headers use c++11 extensions. These are normally silenced because | ||||
# they are treated as system headers, but we explicitly disable that warning | # they are treated as system headers, but we explicitly disable that warning | ||||
# suppression when building the base system to catch bugs in our headers. | # suppression when building the base system to catch bugs in our headers. | ||||
# Eventually we'll want to start building the base system C++ code as C++11, | # Eventually we'll want to start building the base system C++ code as C++11, | ||||
# but not yet. | # but not yet. | ||||
CXXFLAGS.clang+= -Wno-c++11-extensions | CXXFLAGS.clang+= -Wno-c++11-extensions | ||||
.if ${MK_SSP} != "no" && \ | .if ${MK_SSP} != "no" | ||||
${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" | |||||
# Don't use -Wstack-protector as it breaks world with -Werror. | # Don't use -Wstack-protector as it breaks world with -Werror. | ||||
SSP_CFLAGS?= -fstack-protector-strong | SSP_CFLAGS?= -fstack-protector-strong | ||||
CFLAGS+= ${SSP_CFLAGS} | CFLAGS+= ${SSP_CFLAGS} | ||||
.endif # SSP && !ARM && !MIPS | .endif # SSP | ||||
# Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is | # Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is | ||||
# enabled. | # enabled. | ||||
DEBUG_FILES_CFLAGS?= -g | DEBUG_FILES_CFLAGS?= -g | ||||
# Allow user-specified additional warning flags, plus compiler and file | # Allow user-specified additional warning flags, plus compiler and file | ||||
# specific flag overrides, unless we've overridden this... | # specific flag overrides, unless we've overridden this... | ||||
.if ${MK_WARNS} != "no" | .if ${MK_WARNS} != "no" | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |