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:
parent
75fbb099dc
commit
cbd73d6a9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332126
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user