From cf460840b825f2fd7521b0ae211353080d33ceef Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 25 Mar 2024 15:16:22 +0900 Subject: 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 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) -- cgit v1.2.3