summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-07 22:43:37 -0800
committerGitHub <noreply@github.com>2023-03-07 22:43:37 -0800
commit6d91df08b53d0b17fa8cd949a3c6b42164c46c8d (patch)
tree8aea38651881189841c537dd8c8ca097a850f351 /.github
parent0bf4cd8e1c3178345a63ce5b9d80d02781d93497 (diff)
downloadruby-6d91df08b53d0b17fa8cd949a3c6b42164c46c8d.tar.gz
Allow enabling YJIT and RJIT independently (#7474)
We used to require MJIT is supported when YJIT is supported. However, now that RJIT dropped some platforms that YJIT supports, it no longer makes sense. We should be able to enable only YJIT, and vice versa.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/compilers.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 06ad18085d..7beb6d9624 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -197,8 +197,10 @@ jobs:
# - { name: VM_DEBUG_BP_CHECK, env: { cppflags: '-DVM_DEBUG_BP_CHECK' } }
# - { name: VM_DEBUG_VERIFY_METHOD_CACHE, env: { cppflags: '-DVM_DEBUG_VERIFY_METHOD_CACHE' } }
+ - { name: enable-yjit, env: { append_configure: '--enable-yjit --disable-rjit' }, rust: true }
+ - { name: enable-rjit, env: { append_configure: '--enable-rjit --disable-yjit' } }
+ - { name: YJIT_FORCE_ENABLE, env: { cppflags: '-DYJIT_FORCE_ENABLE' }, rust: true }
- { name: RJIT_FORCE_ENABLE, env: { cppflags: '-DRJIT_FORCE_ENABLE' } }
- - { name: YJIT_FORCE_ENABLE, env: { cppflags: '-DYJIT_FORCE_ENABLE' } }
name: ${{ matrix.entry.name }}
runs-on: ubuntu-latest
@@ -222,6 +224,9 @@ jobs:
with:
path: src/.downloaded-cache
key: downloaded-cache
+ - name: Install Rust
+ if: ${{ matrix.entry.rust }}
+ run: sudo apt-get update && sudo apt install -y rustc
- name: autogen
run: |
if [ ! -f ./autogen.sh ]; then