Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-11-27 19:02:11 +02:00
parent c7d8cb2394
commit 91b025bac1
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,3 @@
%ifnarch riscv64
%global toolchain clang
%global libcxxabi_version 15.0.4
#global rc_ver 3
@ -70,6 +69,8 @@ sed -i 's|#define _LIBCXXABI_ARM_EHABI||g' include/__cxxabi_config.h
%endif
%cmake -GNinja \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
-DLIBCXXABI_LIBCXX_INCLUDES=%{_includedir}/c++/v1/ \
%if 0%{?__isa_bits} == 64