diff --git a/llvm14.changes b/llvm14.changes index 03d82b9..d8ff532 100644 --- a/llvm14.changes +++ b/llvm14.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 19 18:32:11 UTC 2022 - Andreas Schwab + +- Use correct LLVM_HOST_TRIPLE for riscv64 + ------------------------------------------------------------------- Sat Sep 3 15:15:10 UTC 2022 - Aaron Puchert diff --git a/llvm14.spec b/llvm14.spec index 2e77766..26cf6c0 100644 --- a/llvm14.spec +++ b/llvm14.spec @@ -79,7 +79,12 @@ %else %define host_runtime gnu %endif +%ifarch riscv64 +# This must match the gcc target exactly +%define host_triple %{host_cpu}-%{_host_vendor}-%{_host_os} +%else %define host_triple %{host_cpu}-%{_host_vendor}-%{_host_os}-%{host_runtime} +%endif # By default, build everything. %global llvm_targets "all"