summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-11-14 17:19:38 +0900
committerKOBAYASHI Shuji <[email protected]>2020-11-14 17:19:38 +0900
commite941fb7866320343467fd8238e6ccbc48e6628f3 (patch)
tree9d8359235eef03375f8d12b32dbd4e4714b10b5c /tasks
parentfdbb1731cedaca0abe3856fbc296a375a8bfb286 (diff)
downloadmruby-e941fb7866320343467fd8238e6ccbc48e6628f3.tar.gz
mruby-e941fb7866320343467fd8238e6ccbc48e6628f3.zip
Remove redundant command execution in `header_search_paths`
There is no need to execute command in duplicate for the same reason as #5128.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/toolchains/gcc.rake3
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|