Skip to content

Commit 8c2bca9

Browse files
committed
Revert unintentional change. Add PROCESSORS variable
to `Makefile` to limit active CPU used to build the project. (no-issue-check)
1 parent 6ef03e2 commit 8c2bca9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ VERSION ?=
77
# ALS build date
88
BUILD_DATE ?=
99

10+
# CPU limit
11+
PROCESSORS ?= 0
12+
1013
# Define platform-specific variables
1114
ifeq ($(OS),Windows_NT)
1215
PYTHON=python.exe
@@ -35,7 +38,7 @@ TESTER=$(ROOTDIR)/.obj/tester/tester-run$(EXE)
3538
MOCHA_ALS_UPDATE=
3639

3740
GPRBUILD_EXTRA=
38-
GPRBUILD_FLAGS=-m -j0 $(GPRBUILD_EXTRA)
41+
GPRBUILD_FLAGS=-m -j$(PROCESSORS) $(GPRBUILD_EXTRA)
3942
GPRBUILD=gprbuild $(GPRBUILD_FLAGS) -XSUPERPROJECT=
4043
GPRCLEAN_EXTRA=
4144
GPRCLEAN=gprclean -XSUPERPROJECT= $(GPRCLEAN_EXTRA)

0 commit comments

Comments
 (0)