summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-03-25 15:16:22 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2024-05-28 13:30:26 -0700
commitcf460840b825f2fd7521b0ae211353080d33ceef (patch)
tree9f9a4e1716a62dec5c2ae82be3668841e7794fba
parent716473e348eb74c5d437f570cd0d2a1efe30a8ae (diff)
Guard makefile target at cross-build
http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-aarch64/log/20240325T041917Z.fail.html.gz
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 7cb584bdd7..c3926e98ec 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -754,7 +754,7 @@ module RbInstall
makefile = File.read(makefile_path)
name = makefile[/^TARGET[ \t]*=[ \t]*((?:.*\\\n)*.*)/, 1]
- return [] if name.empty?
+ return [] if name.nil? || name.empty?
feature = makefile[/^DLLIB[ \t]*=[ \t]*((?:.*\\\n)*.*)/, 1]
feature = feature.sub("$(TARGET)", name)