adopt to new cmake macro
This commit is contained in:
parent
9610c53997
commit
8c9ff35cad
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{crt_version}
|
Version: %{crt_version}
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: LLVM "compiler-rt" runtime libraries
|
Summary: LLVM "compiler-rt" runtime libraries
|
||||||
|
|
||||||
License: NCSA or MIT
|
License: NCSA or MIT
|
||||||
@ -80,9 +80,7 @@ pathfix.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize
|
|||||||
%build
|
%build
|
||||||
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
||||||
export ASMFLAGS=$CFLAGS
|
export ASMFLAGS=$CFLAGS
|
||||||
mkdir -p _build
|
%cmake \
|
||||||
cd _build
|
|
||||||
%cmake .. \
|
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
@ -102,15 +100,10 @@ cd _build
|
|||||||
%endif
|
%endif
|
||||||
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
||||||
|
|
||||||
%make_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd _build
|
%cmake_install
|
||||||
%make_install
|
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
#%%cmake_build --target check-compiler-rt
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.TXT
|
%license LICENSE.TXT
|
||||||
@ -125,6 +118,9 @@ cd _build
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-5
|
||||||
- Add BiSheng Autotuner support.
|
- Add BiSheng Autotuner support.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user