Skip to content

Commit

Permalink
[GR-51052] Reenable parallel compilation on darwin-amd64.
Browse files Browse the repository at this point in the history
PullRequest: mx/1728
  • Loading branch information
woess committed Dec 21, 2023
2 parents f49c56f + e3be8e8 commit c250e12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mx/_impl/mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8893,8 +8893,9 @@ def __init__(self, args, project):
if hasattr(project, 'single_job') or not project.suite.getMxCompatibility().useJobsForMakeByDefault():
self.parallelism = 1
elif (is_darwin() and get_arch() == 'amd64' and is_continuous_integration()) and not _opts.cpu_count:
# work around darwin bug where make randomly fails in our CI (GR-6892) if compilation is too parallel
self.parallelism = 1
# work around a bug on macOS versions before Big Sur where make randomly fails in our CI (GR-6892) if compilation is too parallel
if int(platform.mac_ver()[0].split('.')[0]) < 11:
self.parallelism = 1
self._newestOutput = None

def __str__(self):
Expand Down Expand Up @@ -19246,7 +19247,7 @@ def alarm_handler(signum, frame):
abort(1, killsig=signal.SIGINT)

# The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue
version = VersionSpec("7.5.0") # GR-33678 multi-target native projects
version = VersionSpec("7.5.1") # GR-51052 Reenable parallel compilation on darwin-amd64

_mx_start_datetime = datetime.utcnow()
_last_timestamp = _mx_start_datetime
Expand Down

0 comments on commit c250e12

Please sign in to comment.