diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-14 18:52:48 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-14 18:52:48 +0900 |
| commit | 4dcd8dd7cec202d09e5b21f7c55f527916c44aea (patch) | |
| tree | bce6f6b28892ca649db2ef4595764cc83b4a8222 | |
| parent | 8398020d0a6d9052a890acbbfba0f063adada79f (diff) | |
| parent | e941fb7866320343467fd8238e6ccbc48e6628f3 (diff) | |
| download | mruby-4dcd8dd7cec202d09e5b21f7c55f527916c44aea.tar.gz mruby-4dcd8dd7cec202d09e5b21f7c55f527916c44aea.zip | |
Merge pull request #5132 from shuujii/remove-redundant-command-execution-in-header_search_paths
Remove redundant command execution in `header_search_paths`
| -rw-r--r-- | tasks/toolchains/gcc.rake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index 810f23b7a..b5d6e1f25 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -35,8 +35,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params| def cc.header_search_paths if @header_search_command != command result = `echo | #{build.filename command} -x#{@header_search_language} -Wp,-v - -fsyntax-only 2>&1` - result = `echo | #{command} -x#{@header_search_language} -Wp,-v - -fsyntax-only 2>&1` if $?.exitstatus != 0 - return include_paths if $?.exitstatus != 0 + return include_paths if $?.exitstatus != 0 @frameworks = [] @header_search_paths = result.lines.map { |v| |
