- Set target_cpu=x86-64-v2 for x86_64_v2 arch in build_rustflags macro
This commit is contained in:
parent
1c8b212214
commit
ee3b5c6e79
@ -1,6 +1,6 @@
|
|||||||
Name: rust
|
Name: rust
|
||||||
Version: 1.79.0
|
Version: 1.79.0
|
||||||
Release: 3%{dist}.alma.1
|
Release: 3%{dist}.alma.2
|
||||||
Summary: The Rust Programming Language
|
Summary: The Rust Programming Language
|
||||||
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016)
|
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016)
|
||||||
# ^ written as: (rust itself) and (bundled libraries)
|
# ^ written as: (rust itself) and (bundled libraries)
|
||||||
@ -682,6 +682,10 @@ mkdir -p src/llvm-project/libunwind/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%ifarch x86_64_v2
|
||||||
|
sed -i "s/-Cstrip=none/-Cstrip=none -Ctarget_cpu=x86-64-v2/g" %{S:100}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Remove other unused vendored libraries. This leaves the directory in place,
|
# Remove other unused vendored libraries. This leaves the directory in place,
|
||||||
# because some build scripts watch them, e.g. "cargo:rerun-if-changed=curl".
|
# because some build scripts watch them, e.g. "cargo:rerun-if-changed=curl".
|
||||||
%define clear_dir() find ./%1 -mindepth 1 -delete
|
%define clear_dir() find ./%1 -mindepth 1 -delete
|
||||||
@ -1170,6 +1174,9 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 13 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.79.0-3.alma.2
|
||||||
|
- Set target_cpu=x86-64-v2 for x86_64_v2 arch in build_rustflags macro
|
||||||
|
|
||||||
* Mon Aug 05 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.79.0-3.alma.1
|
* Mon Aug 05 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.79.0-3.alma.1
|
||||||
- Use x86_64 target on x86_64_v2 arch
|
- Use x86_64 target on x86_64_v2 arch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user