1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

If the ASSERTS option is enabled, make sure it was enabled in the

corresponding devel/llvm## port as build fails otherwise.
This commit is contained in:
Brooks Davis 2013-10-30 15:18:05 +00:00
parent 75fbb099dc
commit cbd73d6a9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332126
2 changed files with 22 additions and 0 deletions

View File

@ -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}

View File

@ -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}