mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 11:32:02 +02:00
dev-lang/rust: don't enable aarch64 cross target when host is aarch64
This does not work because the host and cross rust targets share the same name. This needs to be reworked to (potentially) enable x86 cross targets for aarch64 targets. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
0064e6b3ec
commit
0a1b0be7f3
@ -190,7 +190,7 @@ src_configure() {
|
||||
fi
|
||||
fi
|
||||
# Auto-enable cross-building only if the cross-compiler is available
|
||||
if [ -f /usr/bin/aarch64-cros-linux-gnu-gcc ]; then
|
||||
if [ "${CBUILD}" != "aarch64-unknown-linux-gnu" ] && [ -f /usr/bin/aarch64-cros-linux-gnu-gcc ]; then
|
||||
rust_targets="${rust_targets},\"aarch64-unknown-linux-gnu\""
|
||||
fi
|
||||
rust_targets="${rust_targets#,}"
|
||||
@ -300,7 +300,7 @@ src_configure() {
|
||||
fi
|
||||
done
|
||||
# Could soon be replaced by the "experimental cross support" below
|
||||
if [ -f /usr/bin/aarch64-cros-linux-gnu-gcc ]; then
|
||||
if [ "${CBUILD}" != "aarch64-unknown-linux-gnu" ] && [ -f /usr/bin/aarch64-cros-linux-gnu-gcc ]; then
|
||||
cat <<- 'EOF' > "${S}/cc.sh"
|
||||
#!/bin/bash
|
||||
args=("$@")
|
||||
|
Loading…
x
Reference in New Issue
Block a user