mirror of
https://github.com/andersrh/copr-andersrh.git
synced 2026-05-19 06:48:01 +00:00
mesa: enable LTO and add Skylake as target for Rust code
(cherry picked from commit fc3fc9a4de)
# Conflicts:
# my-ostree-os/mesa.spec
This commit is contained in:
parent
6c847ea25e
commit
53c8ae81fa
1 changed files with 2 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ BuildRequires: meson >= 1.3.0
|
|||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: clang
|
||||
BuildRequires: lld
|
||||
BuildRequires: gettext
|
||||
%if 0%{?with_hardware}
|
||||
BuildRequires: kernel-headers
|
||||
|
|
@ -393,7 +394,7 @@ cp %{SOURCE1} docs/
|
|||
|
||||
%build
|
||||
# ensure standard Rust compiler flags are set
|
||||
export RUSTFLAGS="%build_rustflags"
|
||||
export RUSTFLAGS="%build_rustflags -C lto=thin -C linker-plugin-lto -C target-cpu=skylake -C link-arg=-fuse-ld=lld"
|
||||
|
||||
%if 0%{?with_nvk}
|
||||
export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue