Skip to content
Snippets Groups Projects
Commit 5622c202 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

add syncTask to chain only if needed

parent 5bc6ed4c
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@ end
@defaultCompilers = %w[icpc icc clang clang++ gcc g++]
# default configure call
@defautConfigureCall = lambda {|cc| "./config/default CC=#{cc}"}
@srcDir = File.expand_path(File.dirname(__FILE__))
# }}}
# helper methods {{{ ===========================================================
......@@ -197,7 +196,10 @@ def builder2task(builder,useHostAsName=false,syncSource=true)
end
desc "builder for host:#{builder.hostname}, CC=#{builder.compiler}"
task baseTaskName.to_sym => [syncTaskName,configTaskName,buildTaskName,checkTaskName].map(&:to_sym) do |t|
task baseTaskName.to_sym => [syncSource ? syncTaskName : nil,
configTaskName,
buildTaskName,
checkTaskName].compact.map(&:to_sym)
end
# }}}
# constuct builders out of user configuration {{{ ==============================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment