aboutsummaryrefslogtreecommitdiff
path: root/lang/clang33
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-10-30 15:18:05 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-10-30 15:18:05 +0000
commitcbd73d6a9cf0a86ce7285b344b4dbdd7c0ef0226 (patch)
tree2e13893f328f272ee14b261c760e637643eece23 /lang/clang33
parent75fbb099dccc287d6783be9b02df1876f6e43587 (diff)
downloadports-cbd73d6a9cf0a86ce7285b344b4dbdd7c0ef0226.tar.gz
ports-cbd73d6a9cf0a86ce7285b344b4dbdd7c0ef0226.zip
Notes
Diffstat (limited to 'lang/clang33')
-rw-r--r--lang/clang33/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/clang33/Makefile b/lang/clang33/Makefile
index 53b3f7e93677..ac8fbd8a5c72 100644
--- a/lang/clang33/Makefile
+++ b/lang/clang33/Makefile
@@ -79,6 +79,17 @@ RELTYPE= Release
BROKEN= Does not compile on sparc64
.endif
+.if ${PORT_OPTIONS:MASSERTS}
+pre-fetch:
+ @if [ "`llvm-config${LLVM_SUFFIX} --build-mode`" != ${RELTYPE} ]; then \
+ ${ECHO_MSG} ;\
+ ${ECHO_MSG} ASSERTS option enabled, but devel/llvm${LLVM_SUFFIX} was compiled without ASSERTS. ;\
+ ${ECHO_MSG} Correct options mismatch to proceed. ;\
+ ${ECHO_MSG} ;\
+ false ;\
+ fi
+.endif
+
post-extract:
${RM} -f ${BUILD_WRKSRC}
${MV} ${WRKDIR}/${CLANG_NAME} ${BUILD_WRKSRC}