summaryrefslogtreecommitdiffstats
path: root/lib/atf
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
committerdim <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
commitb8e518528f02b85edc31c8aaab7dce50b2c0637a (patch)
treebe47307173b9efd3ad49c05d4784734effcc6646 /lib/atf
parent47ed2e723641d37c7d409d6ce11d4786823dc8e8 (diff)
downloadFreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.zip
FreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.tar.gz
To avoid having to explicitly test COMPILER_TYPE for setting
clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC after: 1 week
Diffstat (limited to 'lib/atf')
-rw-r--r--lib/atf/libatf-c/tests/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/atf/libatf-c/tests/Makefile b/lib/atf/libatf-c/tests/Makefile
index 0d13d9c..a5c2836 100644
--- a/lib/atf/libatf-c/tests/Makefile
+++ b/lib/atf/libatf-c/tests/Makefile
@@ -10,12 +10,10 @@ ATF= ${.CURDIR:H:H:H:H}/contrib/atf
CFLAGS+= -I${ATF}
-.if ${COMPILER_TYPE} == "clang"
# macros_test.c contains a double 'const const' which will be gone with
# the import of atf-0.18.
# TODO(jmmv): Remove this workaround once we do that update.
-CFLAGS+= -Wno-duplicate-decl-specifier
-.endif
+CFLAGS.clang+= -Wno-duplicate-decl-specifier
FILESDIR= ${TESTSDIR}
FILES= macros_h_test.c
OpenPOWER on IntegriCloud