lang/rust-bootstrap: Relax x86 host requirement

This commit is contained in:
Tobias Kortkamp 2021-11-09 09:14:18 +01:00
parent 3dd789ff4a
commit a8d8cef02a
No known key found for this signature in database
GPG key ID: A4F09FB73CC51F61

View file

@ -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