mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4440 from kou/cc-with-option
Add support for CC="gcc --option ..." again
This commit is contained in:
@@ -30,10 +30,13 @@ module MRuby
|
||||
def _run(options, params={})
|
||||
return sh command + ' ' + ( options % params ) if NotFoundCommands.key? @command
|
||||
begin
|
||||
fiber, $rake_root_fiber = $rake_root_fiber, nil
|
||||
sh build.filename(command) + ' ' + ( options % params )
|
||||
rescue RuntimeError
|
||||
NotFoundCommands[@command] = true
|
||||
_run options, params
|
||||
ensure
|
||||
$rake_root_fiber = fiber
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user