Peter Szilagyi avatar Peter Szilagyi committed 1aa6ba0

Implemented Ron's suggestion to provide more -j, and only limit it in TOT.

Comments (0)

Files changed (1)

   :type 'string)
 
 ;; CR pszilagyi: Change Omake.omake-command semi-temporarily in a
-;; simple but easily overridden way.  A more sophisticated alternative
-;; would be to look at context to decide if we're in TOT, but KISS.
-(defvar Omake.omake-command-after-sandy "jomake -j 1")
+;; simple but easily overridden way.
+(defvar Omake.omake-command-tot-after-sandy "jomake -j 6")
+(defun Omake.omake-command ()
+  (if (string-match-p "^tot-" (system-name))
+      Omake.omake-command-tot-after-sandy
+    Omake.omake-command))
 
 (defcustom Omake.prompt-before-killing-project t
   "If t, prompt y/n before killing a project"
      (_ (when (Omake.Model.has id) (error "A model for %s already exists" id)))
      (env (Omake.Env.create id))
      (verbose nil)
-     (command Omake.omake-command-after-sandy)
+     (command (Omake.omake-command))
      (omakeroot-dir (Omake.Path.omakeroot-dir compilation-dir))
      (error-buffer (Omake.Buffer.create Omake.Buffer.Error compilation-dir) model)
      ;; turn on omake-mode in the error buffer
         ;; Create the model
         (let ((user-command
                (when read-command
-                 (read-from-minibuffer "Command: " Omake.omake-command-after-sandy))))
+                 (read-from-minibuffer "Command: " (Omake.omake-command)))))
           (Omake.Model.create path user-command))
         ;; Show the error buffer
         (Omake.show-error-buffer)))))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.