bsd.sys.mk (260495) | bsd.sys.mk (262459) |
---|---|
1# $FreeBSD: stable/10/share/mk/bsd.sys.mk 260495 2014-01-09 22:40:51Z dim $ | 1# $FreeBSD: stable/10/share/mk/bsd.sys.mk 262459 2014-02-24 21:22:44Z dim $ |
2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining NO_WARNS. 8 9# for GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html --- 105 unchanged lines hidden (view full) --- 115.endif # IGNORE_PRAGMA 116 117.if !defined(EARLY_BUILD) 118.if ${COMPILER_TYPE} == "clang" 119CLANG_NO_IAS= -no-integrated-as 120CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\ 121 -mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret 122CFLAGS+= -Qunused-arguments | 2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining NO_WARNS. 8 9# for GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html --- 105 unchanged lines hidden (view full) --- 115.endif # IGNORE_PRAGMA 116 117.if !defined(EARLY_BUILD) 118.if ${COMPILER_TYPE} == "clang" 119CLANG_NO_IAS= -no-integrated-as 120CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\ 121 -mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret 122CFLAGS+= -Qunused-arguments |
123# The libc++ headers use c++11 extensions. These are normally silenced because 124# they are treated as system headers, but we explicitly disable that warning 125# suppression when building the base system to catch bugs in our headers. 126# Eventually we'll want to start building the base system C++ code as C++11, 127# but not yet. 128CXXFLAGS+= -Wno-c++11-extensions |
|
123CFLAGS+= ${CFLAGS.clang} 124CXXFLAGS+= ${CXXFLAGS.clang} 125.else # !CLANG 126GCC_MS_EXTENSIONS= -fms-extensions 127CFLAGS+= ${CFLAGS.gcc} 128CXXFLAGS+= ${CXXFLAGS.gcc} 129.endif # CLANG 130.endif # !EARLY_BUILD --- 25 unchanged lines hidden --- | 129CFLAGS+= ${CFLAGS.clang} 130CXXFLAGS+= ${CXXFLAGS.clang} 131.else # !CLANG 132GCC_MS_EXTENSIONS= -fms-extensions 133CFLAGS+= ${CFLAGS.gcc} 134CXXFLAGS+= ${CXXFLAGS.gcc} 135.endif # CLANG 136.endif # !EARLY_BUILD --- 25 unchanged lines hidden --- |