summaryrefslogtreecommitdiff
path: root/0001-fix-build-error-for-loongarch64.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-01-20 07:19:18 +0000
committerCoprDistGit <infra@openeuler.org>2026-01-20 07:19:18 +0000
commit3e7128183d13da962c719b5656d6c3c4b93b549e (patch)
treef620873bbd52e13059862cc87e0a1e8fb5b199d8 /0001-fix-build-error-for-loongarch64.patch
parentd0169aa499476f2de7c4697d34ea8d3df101feef (diff)
automatic import of rust-nolseopeneuler24.03_LTS_SP1
Diffstat (limited to '0001-fix-build-error-for-loongarch64.patch')
-rw-r--r--0001-fix-build-error-for-loongarch64.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/0001-fix-build-error-for-loongarch64.patch b/0001-fix-build-error-for-loongarch64.patch
new file mode 100644
index 0000000..4acb4e8
--- /dev/null
+++ b/0001-fix-build-error-for-loongarch64.patch
@@ -0,0 +1,11 @@
+--- a/vendor/compiler_builtins-0.1.123/configure.rs
++++ b/vendor/compiler_builtins-0.1.123/configure.rs
+@@ -72,6 +72,8 @@ pub fn configure_f16_f128(target: &Target) {
+ "sparc" | "sparcv9" => (true, false),
+ // `f16` miscompiles <https://github.com/llvm/llvm-project/issues/96438>
+ "wasm32" | "wasm64" => (false, true),
++ "loongarch64" => (false, true),
++ "riscv64" | "riscv64gc" => (false, true),
+ // Most everything else works as of LLVM 19
+ _ => (true, true),
+ };