From ca6ff757ba8aeef21d79d25c11c426b725b5d997 Mon Sep 17 00:00:00 2001 From: Steffen Planthaber Date: Tue, 10 Jan 2023 15:04:06 +0100 Subject: [PATCH] disable examples and allowing parallel building To improve build time: On my system: before changes: $> time rake real 5m4.414s user 2m12.522s sys 0m26.848s after changes: $> rake clean $> time rake real 1m13.996s user 2m28.404s sys 0m17.292s --- Rakefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Rakefile b/Rakefile index eae52e9..0be946b 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ if windows COPY = 'copy' DEL = 'del' else - MAKE = 'make' + MAKE = 'make -j' SLASH = '/' COPY = 'cp' DEL = 'rm' @@ -46,20 +46,20 @@ def clear_version end end -task :build_examples do - # Go into the examples directory and look for all the makefiles and build them - Dir['examples/**/makefile'].each do |file| - if windows - system("cd #{File.dirname(file).gsub('/', '\\')} && #{MAKE}") - else - system("cd #{File.dirname(file)} && #{MAKE}") - end - end -end - -task :examples => [:build_examples] do - system('cd examples && ruby run_all.rb') -end +# task :build_examples do +# # Go into the examples directory and look for all the makefiles and build them +# Dir['examples/**/makefile'].each do |file| +# if windows +# system("cd #{File.dirname(file).gsub('/', '\\')} && #{MAKE}") +# else +# system("cd #{File.dirname(file)} && #{MAKE}") +# end +# end +# end + +# task :examples => [:build_examples] do +# system('cd examples && ruby run_all.rb') +# end task :default => [:all]