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

ruby-changes:73695

From: Takashi <ko1@a...>
Date: Fri, 23 Sep 2022 06:45:08 +0900 (JST)
Subject: [ruby-changes:73695] 591c3c7a1a (master): Automatically setup bundler of bindgen.rb

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

From 591c3c7a1aae41bb2702dc40609a9bcae0e40ea5 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 18 Sep 2022 23:25:20 +0900
Subject: Automatically setup bundler of bindgen.rb

to easily use it with `tool/mjit/bindgen.rb BUILDDIR` instead of using
`make mjit-bindgen`.
---
 tool/mjit/bindgen.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb
index 5707019266..750fde9805 100755
--- a/tool/mjit/bindgen.rb
+++ b/tool/mjit/bindgen.rb
@@ -1,5 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/tool/mjit/bindgen.rb#L1
 #!/usr/bin/env ruby
 # frozen_string_literal: true
+
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('./Gemfile', __dir__)
+require 'bundler/setup'
+
 require 'etc'
 require 'fiddle/import'
 require 'set'
-- 
cgit v1.2.1


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

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