adopt to new cmake macro

This commit is contained in:
Funda Wang 2024-11-14 12:31:12 +08:00
parent 9610c53997
commit 8c9ff35cad

View File

@ -33,7 +33,7 @@
Name: %{pkg_name}
Version: %{crt_version}
Release: 5
Release: 6
Summary: LLVM "compiler-rt" runtime libraries
License: NCSA or MIT
@ -80,9 +80,7 @@ pathfix.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize
%build
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
export ASMFLAGS=$CFLAGS
mkdir -p _build
cd _build
%cmake .. \
%cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
-DCMAKE_SKIP_RPATH:BOOL=ON \
@ -102,15 +100,10 @@ cd _build
%endif
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
%make_build
%cmake_build
%install
cd _build
%make_install
%check
#%%cmake_build --target check-compiler-rt
%cmake_install
%files
%license LICENSE.TXT
@ -125,6 +118,9 @@ cd _build
%endif
%changelog
* Thu Nov 14 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-6
- adopt to new cmake macro
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-5
- Add BiSheng Autotuner support.