From e052a250b3c2f6d6b1a8f288d5810aacfeab632e Mon Sep 17 00:00:00 2001 From: huangji Date: Thu, 11 Sep 2025 16:18:00 +0800 Subject: [PATCH] disable bisheng_autotuner and ACPO on RISC-V because it is not support yet Signed-off-by: huangji --- llvm.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm.spec b/llvm.spec index 7de81b3..08dabae 100644 --- a/llvm.spec +++ b/llvm.spec @@ -209,10 +209,12 @@ mkdir -p _build cd _build %if %{with ACPO} +%ifnarch riscv64 echo "enable ACPO" export CFLAGS="-Wp,-DENABLE_ACPO ${CFLAGS}" export CXXFLAGS="-Wp,-DENABLE_ACPO ${CXXFLAGS}" %endif +%endif %cmake .. -G Ninja \ -DBUILD_SHARED_LIBS:BOOL=OFF \ @@ -268,7 +270,11 @@ cd _build -DCMAKE_CXX_COMPILER=clang++ \ %endif %if %{with bisheng_autotuner} +%ifarch riscv64 + -DLLVM_ENABLE_AUTOTUNER=OFF \ +%else -DLLVM_ENABLE_AUTOTUNER=ON \ +%endif %endif -DLLVM_INCLUDE_BENCHMARKS=OFF %ninja_build LLVM -- Gitee