From a64b077af3be63a21227f30964bd82b3aa8b34bf Mon Sep 17 00:00:00 2001
From: Tim Michaels <tmichaels@wisc.edu>
Date: Thu, 1 Jun 2023 15:58:37 +0000
Subject: [PATCH] Use parallel compilation only for non-debug build

This makes it easier to find compiler/build errors, without scrolling
through a bunch of less-related stuff first.
---
 build/py_admin.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/build/py_admin.py b/build/py_admin.py
index 43509479..bd8e6c97 100755
--- a/build/py_admin.py
+++ b/build/py_admin.py
@@ -1031,12 +1031,15 @@ F_compiler_opts_lines+'\n'+ \
 
         beg_cwd = os.getcwd()  # Record the current working directory
         os.chdir(absl_paths["makedir"])   # Enter the build "work" directory
-          # Use parallel compilation if available:
-        try:
-            subprocess.check_call([make_exe, "-f", absl_fpaths["makefile"],
-                                   "-j", '4'])
-        except:
+          # Use parallel compilation for non-debug build, if available:
+        if build_debug:
             subprocess.check_call([make_exe, "-f", absl_fpaths["makefile"]])
+        else:
+            try:
+                subprocess.check_call([make_exe, "-f", absl_fpaths["makefile"],
+                                       "-j", '4'])
+            except:
+                subprocess.check_call([make_exe, "-f", absl_fpaths["makefile"]])
 
           # Special actions for 'clavrxorb':
         if "clavrxorb" in os.path.basename(absl_fpaths["libexe"]):
-- 
GitLab