Pass -Werror=lto-type-mismatch for GCC LTO jobs

This helps to find possible LTO miscompilations earlier. See also
https://github.com/ruby/ruby/pull/7695.
This commit is contained in:
Sam James 2023-06-08 07:22:00 +01:00 committed by GitHub
parent 533368ccbd
commit fe42d88ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2023-06-08 06:22:22 +00:00
Merged: https://github.com/ruby/ruby/pull/7704

Merged-By: nobu <nobu@ruby-lang.org>

View file

@ -78,10 +78,10 @@ jobs:
- { name: gcc-9, env: { default_cc: gcc-9 } }
- { name: gcc-8, env: { default_cc: gcc-8 } }
- { name: gcc-7, env: { default_cc: gcc-7 } }
- name: 'gcc-11 LTO'
container: gcc-11
- name: 'gcc-13 LTO'
container: gcc-13
env:
default_cc: 'gcc-11 -flto=auto -ffat-lto-objects'
default_cc: 'gcc-13 -flto=auto -ffat-lto-objects -Werror=lto-type-mismatch'
optflags: '-O2'
shared: disable
# check: true
@ -97,10 +97,10 @@ jobs:
- { name: clang-8, env: { default_cc: clang-8 } }
- { name: clang-7, env: { default_cc: clang-7 } }
- { name: clang-6.0, env: { default_cc: clang-6.0 } }
- name: 'clang-14 LTO'
container: clang-14
- name: 'clang-16 LTO'
container: clang-16
env:
default_cc: 'clang-14 -flto=auto'
default_cc: 'clang-16 -flto=auto'
optflags: '-O2'
shared: disable
# check: true