Fix install with ASSERTS option enabled.

Submitted by:	Cary <cary@SDF.ORG>
This commit is contained in:
Brooks Davis 2013-10-30 14:03:46 +00:00
parent 842c5cdcb5
commit f96a18c995
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332110
2 changed files with 6 additions and 2 deletions

View File

@ -85,8 +85,10 @@ STRIP_LIBS= BugpointPasses.so \
.if ${PORT_OPTIONS:MASSERTS}
CONFIGURE_ARGS+= --enable-assertions
RELEASE_TYPE= Release+Asserts
.else
CONFIGURE_ARGS+= --disable-assertions
RELEASE_TYPE= Release
.endif
.if ${PORT_OPTIONS:MCMAKE}
@ -207,7 +209,7 @@ post-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/lit${LLVM_SUFFIX}
${INSTALL_DATA} ${WRKSRC}/utils/lit/lit/*.py \
${STAGEDIR}${PYTHON_SITELIBDIR}/lit${LLVM_SUFFIX}
${INSTALL_PROGRAM} ${WRKSRC}/Release/bin/FileCheck \
${INSTALL_PROGRAM} ${WRKSRC}/${RELEASE_TYPE}/bin/FileCheck \
${STAGEDIR}${LLVM_PREFIX}/bin/
${LN} -f ${STAGEDIR}${LLVM_PREFIX}/bin/FileCheck \
${STAGEDIR}${PREFIX}/bin/FileCheck${LLVM_SUFFIX}

View File

@ -89,8 +89,10 @@ CONFIGURE_ARGS+=--enable-experimental-targets=R600
.if ${PORT_OPTIONS:MASSERTS}
CONFIGURE_ARGS+= --enable-assertions
RELEASE_TYPE= Release+Asserts
.else
CONFIGURE_ARGS+= --disable-assertions
RELEASE_TYPE= Release
.endif
.if ${PORT_OPTIONS:MCMAKE}
@ -211,7 +213,7 @@ post-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/lit${LLVM_SUFFIX}
${INSTALL_DATA} ${WRKSRC}/utils/lit/lit/*.py \
${STAGEDIR}${PYTHON_SITELIBDIR}/lit${LLVM_SUFFIX}
${INSTALL_PROGRAM} ${WRKSRC}/Release/bin/FileCheck \
${INSTALL_PROGRAM} ${WRKSRC}/${RELEASE_TYPE}/bin/FileCheck \
${STAGEDIR}${LLVM_PREFIX}/bin/
${LN} -f ${STAGEDIR}${LLVM_PREFIX}/bin/FileCheck \
${STAGEDIR}${PREFIX}/bin/FileCheck${LLVM_SUFFIX}