You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Makefile builds all architectures sequentially within each platform target. On a multi-core machine, make amazon-cloudwatch-agent-linux took ~75s because amd64 and arm64 binaries were compiled one after the other.
4
+
5
+
## Description of changes
6
+
7
+
Split build targets by architecture so amd64 and arm64 compile in parallel, and enable automatic parallelization via MAKEFLAGS:
8
+
9
+
- Add NPROCS/MAKEFLAGS += -j$(NPROCS) for automatic parallelization based on available CPU cores
10
+
- Split amazon-cloudwatch-agent-linux into linux-amd64 + linux-arm64 sub-targets
11
+
- Split amazon-cloudwatch-agent-darwin into darwin-amd64 + darwin-arm64 sub-targets
12
+
- Add explicit build dependencies to package-prepare-* targets to prevent race conditions when running make release with -j
13
+
- Exclude build-profile* directories from check_secrets to prevent false positives
0 commit comments