Commit c96ed762a1f36b84accd28e524ae1cfea79a8dd9

Thomas de Grivel 2025-04-09T21:05:27

wip make -j ncpu

diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index d026445..49a5191 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -463,7 +463,7 @@ class Rbpkg::Repo
     verbose 3, "repo(#{name.inspect}).test"
     build()
     if File.file?("#{src_dir}/Makefile")
-      cmd! "cd #{sh_quote(src_dir)} && make #{sh_quote(test_make_rule)}"
+      cmd! "cd #{sh_quote(src_dir)} && make -j #{Rbpkg.ncpu} #{sh_quote(test_make_rule)}"
     end
   end
 
diff --git a/lib/rbpkg/repos/kc3.rb b/lib/rbpkg/repos/kc3.rb
index fa0c59d..12a29dd 100644
--- a/lib/rbpkg/repos/kc3.rb
+++ b/lib/rbpkg/repos/kc3.rb
@@ -12,9 +12,5 @@ class Rbpkg::Repos::KC3 < Rbpkg::Repo
     "https://git.kmx.io/kc3-lang/kc3.git"
   end
 
-  def make_cmd
-    make
-  end
-
   repo_register
 end