aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/fix-rust-target.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/firefox-esr/fix-rust-target.patch')
-rw-r--r--community/firefox-esr/fix-rust-target.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/firefox-esr/fix-rust-target.patch b/community/firefox-esr/fix-rust-target.patch
index 8c4b6739ab..f81418efd2 100644
--- a/community/firefox-esr/fix-rust-target.patch
+++ b/community/firefox-esr/fix-rust-target.patch
@@ -1,10 +1,12 @@
--- a/build/moz.configure/rust.configure
+++ b/build/moz.configure/rust.configure
-@@ -280,9 +280,11 @@
+@@ -280,9 +280,13 @@
die("Don't know how to translate {} for rustc".format(
host_or_target.alias))
-+ fixed_alias = rustc_target.alias.replace("-unknown-", "-alpine-").replace("-gnu", "-musl")
++ fixed_alias = rustc_target.alias.replace("-gnu", "-musl")
++ if host_or_target.cpu != 'aarch64':
++ fixed_alias = fixed_alias.replace("-unknown-", "-alpine-")
+
# Check to see whether our rustc has a reasonably functional stdlib
# for our chosen target.
@@ -13,7 +15,7 @@
in_fd, in_path = mkstemp(prefix='conftest', suffix='.rs')
out_fd, out_path = mkstemp(prefix='conftest', suffix='.rlib')
os.close(out_fd)
-@@ -319,7 +321,7 @@
+@@ -319,7 +323,7 @@
os.remove(out_path)
# This target is usable.