From bd85fd6db9c6e065c65c82ba590b1a16a07791a5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 25 Mar 2024 15:16:22 +0900 Subject: [PATCH] Guard makefile target at cross-build http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-aarch64/log/20240325T041917Z.fail.html.gz --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index a214931750..788277bb70 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -558,7 +558,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)