aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-10-30 23:18:05 +0800
committerbrooks <brooks@FreeBSD.org>2013-10-30 23:18:05 +0800
commitcbc844dddf6f4347e88e4a6d3c1f708343dc5c41 (patch)
tree2e13893f328f272ee14b261c760e637643eece23 /lang
parent47cb7608ca29809a973a20bac9e3ed23eb4417a1 (diff)
downloadfreebsd-ports-gnome-cbc844dddf6f4347e88e4a6d3c1f708343dc5c41.tar.gz
freebsd-ports-gnome-cbc844dddf6f4347e88e4a6d3c1f708343dc5c41.tar.zst
freebsd-ports-gnome-cbc844dddf6f4347e88e4a6d3c1f708343dc5c41.zip
If the ASSERTS option is enabled, make sure it was enabled in the
corresponding devel/llvm## port as build fails otherwise.
Diffstat (limited to 'lang')
-rw-r--r--lang/clang32/Makefile11
-rw-r--r--lang/clang33/Makefile11
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/clang32/Makefile b/lang/clang32/Makefile
index ddaa7be8368b..d0b0cdaf252b 100644
--- a/lang/clang32/Makefile
+++ b/lang/clang32/Makefile
@@ -78,6 +78,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}
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}