Merge pull request #4440 from kou/cc-with-option

Add support for CC="gcc --option ..." again
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-05-17 21:26:00 +09:00
committed by GitHub
+3
View File
@@ -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