Skip to content

Commit

Permalink
Guard makefile target at cross-build
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 25, 2024
1 parent 675dcf9 commit bd85fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/rbinstall.rb
Expand Up @@ -558,7 +558,7 @@ def features_from_makefile(makefile_path)
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)
Expand Down

0 comments on commit bd85fd6

Please sign in to comment.