summaryrefslogtreecommitdiff
path: root/.gitlab-ci/build
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2023-02-10 16:22:38 +0100
committerMarge Bot <emma+marge@anholt.net>2023-03-17 16:08:34 +0000
commit2ead574abe4300a6be42d7c65397e15b0881fe16 (patch)
treef12c067f63ff9b4bd6ad792ea0e58cc8817dd637 /.gitlab-ci/build
parenteb9cd45ef68ce50fb69cfb7352ae1cd616a8b458 (diff)
downloadmesa-2ead574abe4300a6be42d7c65397e15b0881fe16.tar.gz
ci: Enable LTO for fedora-release job
Requires -Wno-error=... to be passed to the linking stage. NOTE: This does not imply that it's safe to enable LTO for Fedora package builds yet. It just helps prevent moving further away from that long term goal. v2: * Keep passing -Wno-error=array-bounds & -Wno-error=stringop-overread. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21781>
Diffstat (limited to '.gitlab-ci/build')
-rw-r--r--.gitlab-ci/build/gitlab-ci.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.gitlab-ci/build/gitlab-ci.yml b/.gitlab-ci/build/gitlab-ci.yml
index 2b107d14d73..5f83cfd80c8 100644
--- a/.gitlab-ci/build/gitlab-ci.yml
+++ b/.gitlab-ci/build/gitlab-ci.yml
@@ -282,8 +282,13 @@ fedora-release:
- .use-fedora/x86_build
variables:
BUILDTYPE: "release"
- C_ARGS: >
+ C_LINK_ARGS: >
+ -Wno-error=array-bounds
+ -Wno-error=stringop-overflow
+ -Wno-error=stringop-overread
+ CPP_LINK_ARGS: >
-Wno-error=array-bounds
+ -Wno-error=stringop-overflow
-Wno-error=stringop-overread
DRI_LOADERS: >
-D glx=dri
@@ -292,6 +297,8 @@ fedora-release:
-D glvnd=true
-D platforms=x11,wayland
EXTRA_OPTION: >
+ --native-file .gitlab-ci/build/meson-native-lto-wrappers.txt
+ -D b_lto=true
-D osmesa=true
-D selinux=true
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,nir,nouveau,lima,panfrost,imagination
@@ -318,7 +325,7 @@ fedora-release:
UNWIND: "disabled"
VULKAN_DRIVERS: "amd,broadcom,freedreno,imagination-experimental,intel,intel_hasvk"
script:
- - .gitlab-ci/meson/build.sh
+ - PATH=$PATH:$PWD/.gitlab-ci/build .gitlab-ci/meson/build.sh
debian-android:
extends: