Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cache make executable name in make method
  • Loading branch information
flori committed Aug 23, 2009
1 parent d660134 commit d8d9bd0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/rake/extensiontask.rb
Expand Up @@ -334,10 +334,17 @@ def extconf
"#{@ext_dir}/#{@config_script}"
end

MAKE = ENV['MAKE'] || %w[gmake make].find { |c| system(c, '-v') }

def make
RUBY_PLATFORM =~ /mswin/ ? 'nmake' : MAKE
unless @make
@make =
if RUBY_PLATFORM =~ /mswin/ then
'nmake'
else
ENV['MAKE'] || %w[gmake make].find { |c| system(c, '-v') }
end
end
@make
end

def binary(platform = nil)
Expand Down

0 comments on commit d8d9bd0

Please sign in to comment.