[前][次][番号順一覧][スレッド一覧]

ruby-changes:67851

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:03:11 +0900 (JST)
Subject: [ruby-changes:67851] cb4e2cb55a (master): .github/workflows/compilers.yml: disable shared for LTO

https://git.ruby-lang.org/ruby.git/commit/?id=cb4e2cb55a

From cb4e2cb55a59833fc4f1f6db2f3082d1ffcafc80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Thu, 9 Sep 2021 22:19:07 +0900
Subject: .github/workflows/compilers.yml: disable shared for LTO

LTO is about static links.  Makes no sense to have DLLs.
---
 .github/workflows/compilers.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 82dc4df..2fc387a 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -20,7 +20,6 @@ env: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L20
   debugflags: '-ggdb3'
 
   default_configure: >-
-    --enable-shared
     --enable-debug-env
     --disable-install-doc
     --with-ext=-test-/cxxanyargs,+
@@ -60,6 +59,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L59
             name: 'gcc-11 LTO'
             value: 'gcc-11 -O2 -flto=auto -ffat-lto-objects'
             container: gcc-11
+            shared: '--disable-shared'
             # check: true
           - { key: default_cc, name: clang-14,  value: clang-14,  container: clang-14 }
           - { key: default_cc, name: clang-13,  value: clang-13,  container: clang-13 }
@@ -77,6 +77,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L77
             name: 'clang-14 LTO'
             value: 'clang-14 -O2 -flto=auto'
             container: clang-14
+            shared: '--disable-shared'
             # check: true
 
           - { key: crosshost, name: aarch64-linux-gnu,     value: aarch64-linux-gnu, container: crossbuild-essential-arm64 }
@@ -190,6 +191,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L191
         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' }}
       - run: $make extract-extlibs
       - run: $make incs
       - run: $make
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]