git: a8d8cef02a47 - main - lang/rust-bootstrap: Relax x86 host requirement
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Nov 2021 09:42:41 UTC
The branch main has been updated by tobik:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a8d8cef02a472b5f5953155d39300fe627a1088c
commit a8d8cef02a472b5f5953155d39300fe627a1088c
Author: Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2021-11-09 08:14:18 +0000
Commit: Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2021-11-13 09:09:12 +0000
lang/rust-bootstrap: Relax x86 host requirement
---
lang/rust-bootstrap/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile
index 3580855c912a..e830957fdec0 100644
--- a/lang/rust-bootstrap/Makefile
+++ b/lang/rust-bootstrap/Makefile
@@ -124,9 +124,9 @@ do-configure:
.endif
# https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
@${ECHO_CMD} 'ldflags="-lz"' >> ${WRKSRC}/config.toml
-# we need to make sure to always build llvm with X86 support to get a
+# we need to make sure to always build llvm with host arch support to get a
# host compiler that can build the host->target compiler
- @${ECHO_CMD} 'targets="${_RUST_LLVM_TARGET};X86"' >> ${WRKSRC}/config.toml
+ @${ECHO_CMD} 'targets="${_RUST_LLVM_TARGET};${_RUST_LLVM_TARGET_${ARCH}}"' >> ${WRKSRC}/config.toml
@${ECHO_CMD} '[target.${_RUST_TARGET}]' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'cc="${LOCALBASE}/freebsd-sysroot/${FLAVOR:S/_/-/g}/bin/cc"' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'cxx="${LOCALBASE}/freebsd-sysroot/${FLAVOR:S/_/-/g}/bin/c++"' >> ${WRKSRC}/config.toml