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

ruby-changes:61178

From: Nobuyoshi <ko1@a...>
Date: Sun, 10 May 2020 17:28:38 +0900 (JST)
Subject: [ruby-changes:61178] 42e8de8db9 (master): Fix for cross_compiling

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

From 42e8de8db9c009fef41694db3e14d6d4500d6848 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 10 May 2020 17:26:28 +0900
Subject: Fix for cross_compiling

`RubyVM.each_builtin` is not defined when cross compiling.

diff --git a/template/builtin_binary.inc.tmpl b/template/builtin_binary.inc.tmpl
index eb0bded..e3941d8 100644
--- a/template/builtin_binary.inc.tmpl
+++ b/template/builtin_binary.inc.tmpl
@@ -1,9 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/template/builtin_binary.inc.tmpl#L1
 // -*- c -*-
-% ary = RubyVM.enum_for(:each_builtin).to_a
 // DO NOT MODIFY THIS FILE DIRECTLY.
 // auto-generated file by tool/generic_erb.rb
 // with template/builtin_binary.inc.tmpl
 % unless ARGV.include?('--corss=yes')
+%   ary = RubyVM.enum_for(:each_builtin).to_a
 %   ary.each{|feature, iseq|
 
 static const unsigned char <%= feature %>_bin[] = {
-- 
cgit v0.10.2


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

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