diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-05-17 21:26:00 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-17 21:26:00 +0900 |
| commit | ed0a5f9e164b0a1ebd58028f411b2506500a512d (patch) | |
| tree | 6838b80d129fb2e6d1c95a62a299dbd0af577b44 /lib | |
| parent | b6e9fab64949b91f00d07c890935642f44147615 (diff) | |
| parent | d5c8868346b49e2b2228cb8733398d88f744985b (diff) | |
| download | mruby-ed0a5f9e164b0a1ebd58028f411b2506500a512d.tar.gz mruby-ed0a5f9e164b0a1ebd58028f411b2506500a512d.zip | |
Merge pull request #4440 from kou/cc-with-option
Add support for CC="gcc --option ..." again
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build/command.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index 0f18e0e62..0fa4746da 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -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 |
