Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 15:18:05 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332126 - in head/lang: clang32 clang33
Message-ID:  <201310301518.r9UFI5ZZ026138@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Wed Oct 30 15:18:05 2013
New Revision: 332126
URL: http://svnweb.freebsd.org/changeset/ports/332126

Log:
  If the ASSERTS option is enabled, make sure it was enabled in the
  corresponding devel/llvm## port as build fails otherwise.

Modified:
  head/lang/clang32/Makefile
  head/lang/clang33/Makefile

Modified: head/lang/clang32/Makefile
==============================================================================
--- head/lang/clang32/Makefile	Wed Oct 30 15:16:28 2013	(r332125)
+++ head/lang/clang32/Makefile	Wed Oct 30 15:18:05 2013	(r332126)
@@ -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}

Modified: head/lang/clang33/Makefile
==============================================================================
--- head/lang/clang33/Makefile	Wed Oct 30 15:16:28 2013	(r332125)
+++ head/lang/clang33/Makefile	Wed Oct 30 15:18:05 2013	(r332126)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310301518.r9UFI5ZZ026138>