summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-15 18:07:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-15 18:07:23 +0900
commit26888d5e032202328e10881550477fd036c8e805 (patch)
treec552c889f251c81690945ce240c99e3f6ce7bb3a /tool/rbinstall.rb
parent7af7a539bc34fa630ab4dfd178d67cfebbc8699f (diff)
downloadruby-26888d5e032202328e10881550477fd036c8e805.tar.gz
Workaround for installation failures on macOS
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 663717aa74..66686ebbc5 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -3,6 +3,8 @@
# Used by the "make install" target to install Ruby.
# See common.mk for more details.
+ENV["SDKROOT"] ||= "" if /darwin/ =~ RUBY_PLATFORM
+
begin
load "./rbconfig.rb"
rescue LoadError