diff options
| author | Tobias Kortkamp <tobik@FreeBSD.org> | 2021-11-05 10:25:23 +0000 |
|---|---|---|
| committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2021-12-23 10:10:16 +0000 |
| commit | 96eec29c9aa623f3aef843e238b50329ef386c45 (patch) | |
| tree | 802849e00e26cd53b8476092d881cfa5a2080f81 /lang/rust-bootstrap | |
| parent | 9675ea8777bb6d40590a983675ac731fa86e6c9b (diff) | |
Diffstat (limited to 'lang/rust-bootstrap')
| -rw-r--r-- | lang/rust-bootstrap/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile index 4dae6430264f..115fb7fe206c 100644 --- a/lang/rust-bootstrap/Makefile +++ b/lang/rust-bootstrap/Makefile @@ -27,7 +27,7 @@ BUILD_DEPENDS= ${FLAVOR:S/_/-/g}-freebsd-sysroot>=a2021.09.14:devel/freebsd-sysr rust>=${PORTVERSION}:lang/rust FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc64_elfv1 powerpc64_elfv2 \ - powerpc64le powerpc + powerpc64le powerpc riscv64 FLAVOR?= ${FLAVORS:[1]} USES= cpe ninja:build perl5 python:3.6+,build tar:xz @@ -51,6 +51,7 @@ _RUST_ARCH_amd64= x86_64 _RUST_ARCH_i386= i686 _RUST_ARCH_powerpc64_elfv1= powerpc64 _RUST_ARCH_powerpc64_elfv2= powerpc64 +_RUST_ARCH_riscv64= riscv64gc _RUST_HOST= ${_RUST_ARCH_${ARCH}:U${ARCH}}-unknown-${OPSYS:tl} _RUST_TARGET= ${_RUST_ARCH_${FLAVOR}:U${FLAVOR}}-unknown-${OPSYS:tl} _RUST_LLVM_TARGET= ${_RUST_LLVM_TARGET_${FLAVOR}} @@ -63,13 +64,14 @@ _RUST_LLVM_TARGET_powerpc64_elfv1= PowerPC _RUST_LLVM_TARGET_powerpc64_elfv2= PowerPC _RUST_LLVM_TARGET_powerpc64le= PowerPC _RUST_LLVM_TARGET_powerpc= PowerPC +_RUST_LLVM_TARGET_riscv64= RISCV .include <bsd.port.pre.mk> .if ${OPSYS} != FreeBSD IGNORE= is only for FreeBSD .endif -.if ${FLAVOR} == powerpc64le && ${OSVERSION} < 1300116 +.if (${FLAVOR} == powerpc64le || ${FLAVOR} == riscv64) && ${OSVERSION} < 1300116 IGNORE= will not build on 12.x due to old system .endif @@ -112,6 +114,9 @@ do-configure: @${ECHO_CMD} '[rust]' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'channel="stable"' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'default-linker="${CC}"' >> ${WRKSRC}/config.toml +.if ${FLAVOR} == riscv64 + @${ECHO_CMD} 'debug=true' >> ${WRKSRC}/config.toml +.endif @${ECHO_CMD} 'deny-warnings=false' >> ${WRKSRC}/config.toml @${ECHO_CMD} '[llvm]' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'link-shared=false' >> ${WRKSRC}/config.toml |
