summaryrefslogtreecommitdiff
path: root/.github/workflows/compilers.yml
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-04-25 13:30:00 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2022-04-25 14:29:19 -0400
commit9c44b5fbc88cde1915a78265e72692e100cec16e (patch)
tree7ca9fae0f1cf58e54b99f827074abf2156364520 /.github/workflows/compilers.yml
parentb989c7c6ac23f0edb2348b359af9825c39e90bde (diff)
[CI] Use -O2 on LTO builds as intended
Previously, since the `optflags` environment variable was set to `-O1` and `optflags` comes after the flags appended as `CC`, we were doing LTO builds with `-O1`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5845
Diffstat (limited to '.github/workflows/compilers.yml')
-rw-r--r--.github/workflows/compilers.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 5e2b527efe..128b53c208 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -71,9 +71,9 @@ jobs:
- { key: default_cc, name: gcc-4.8, value: gcc-4.8, container: gcc-4.8 }
- key: default_cc
name: 'gcc-11 LTO'
- value: 'gcc-11 -O2 -flto=auto -ffat-lto-objects'
+ value: 'gcc-11 -flto=auto -ffat-lto-objects'
container: gcc-11
- shared: '--disable-shared'
+ configure_append: '--disable-shared optflags=-O2'
# check: true
- { key: default_cc, name: clang-15, value: clang-15, container: clang-15 }
- { key: default_cc, name: clang-14, value: clang-14, container: clang-14 }
@@ -90,9 +90,9 @@ jobs:
- { key: default_cc, name: clang-3.9, value: clang-3.9, container: clang-3.9 }
- key: default_cc
name: 'clang-14 LTO'
- value: 'clang-14 -O2 -flto=auto'
+ value: 'clang-14 -flto=auto'
container: clang-14
- shared: '--disable-shared'
+ configure_append: '--disable-shared optflags=-O2'
# check: true
# - { key: crosshost, name: aarch64-linux-gnu, value: aarch64-linux-gnu, container: crossbuild-essential-arm64 }
@@ -220,7 +220,7 @@ jobs:
run: >
../src/configure -C ${default_configure} ${append_configure}
${{ matrix.entry.key == 'crosshost' && '--host="${crosshost}"' || '--with-gcc="${default_cc} ${append_cc}"' }}
- ${{ matrix.entry.shared || '--enable-shared' }}
+ ${{ matrix.entry.configure_append || '--enable-shared' }}
- run: make extract-extlibs
- run: make incs
- run: make