|
Lines 58-79
CONFIGURE_ARGS= --disable-valgrind --disable-docs \
Link Here
|
| 58 |
--enable-clang --mandir=${MANPREFIX}/man \ |
58 |
--enable-clang --mandir=${MANPREFIX}/man \ |
| 59 |
--release-channel=${RUST_CHANNEL} |
59 |
--release-channel=${RUST_CHANNEL} |
| 60 |
|
60 |
|
| 61 |
# Use LLVM from ports, instead of the copy shipped with rust. |
|
|
| 62 |
#LLVM_VER= 36 |
| 63 |
#BUILD_DEPENDS+= llvm${LLVM_VER}>=0:${PORTSDIR}/devel/llvm${LLVM_VER} |
| 64 |
#CONFIGURE_ARGS+=--llvm-root=${LOCALBASE}/llvm${LLVM_VER} |
| 65 |
|
| 66 |
.if defined(BATCH) || defined(PACKAGE_BUILDING) |
61 |
.if defined(BATCH) || defined(PACKAGE_BUILDING) |
| 67 |
MAKE_ARGS+= VERBOSE=1 |
62 |
MAKE_ARGS+= VERBOSE=1 |
| 68 |
.endif |
63 |
.endif |
| 69 |
|
64 |
|
| 70 |
OPTIONS_DEFINE= GDB LLNEXTGEN |
65 |
OPTIONS_DEFINE= GDB LLNEXTGEN PORT_LLVM |
| 71 |
GDB_DESC= Install ports gdb (necessary for debugging rust programs) |
66 |
GDB_DESC= Install ports gdb (necessary for debugging rust programs) |
| 72 |
LLNEXTGEN_DESC= Build with grammar verification |
67 |
LLNEXTGEN_DESC= Build with grammar verification |
| 73 |
|
68 |
|
| 74 |
GDB_RUN_DEPENDS= ${LOCALBASE}/bin/gdb:${PORTSDIR}/devel/gdb |
69 |
GDB_RUN_DEPENDS= ${LOCALBASE}/bin/gdb:${PORTSDIR}/devel/gdb |
| 75 |
LLNEXTGEN_BUILD_DEPENDS= LLnextgen:${PORTSDIR}/devel/llnextgen |
70 |
LLNEXTGEN_BUILD_DEPENDS= LLnextgen:${PORTSDIR}/devel/llnextgen |
| 76 |
|
71 |
|
|
|
72 |
# Rust may pass more regression tests with bundled LLVM |
| 73 |
PORT_LLVM_DESC= Build against devel/llvm${LLVM_VER} instead of bundled version |
| 74 |
PORT_LLVM_BUILD_DEPENDS= ${LLVM_PREFIX}/bin/FileCheck:${PORTSDIR}/devel/llvm${LLVM_VER} |
| 75 |
PORT_LLVM_CONFIGURE_ON= --llvm-root=${LLVM_PREFIX} |
| 76 |
LLVM_VER?= 36 # XXX Move to DEFAULT_VERSIONS |
| 77 |
LLVM_PREFIX= ${LOCALBASE}/llvm${LLVM_VER} |
| 78 |
|
| 77 |
# Note that make test does not work when rust is already installed |
79 |
# Note that make test does not work when rust is already installed |
| 78 |
TEST_TARGET= check |
80 |
TEST_TARGET= check |
| 79 |
TEST_ENV+= ALLOW_NONZERO_RLIMIT_CORE=1 |
81 |
TEST_ENV+= ALLOW_NONZERO_RLIMIT_CORE=1 |