Skip to content

Commit d71da94

Browse files
committed
Introduce MPC_NUMBER_OF_PROCESSORS
Makes it possible to configure the number of jobs from the user
1 parent 7e7f231 commit d71da94

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

templates/bmake.mpd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ RC = <%rc%>
9999
LIBFLAGS = <%libflags%>
100100
CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%>
101101

102+
!ifndef MPC_NUMBER_OF_PROCESSORS
103+
MPC_NUMBER_OF_PROCESSORS = $(NUMBER_OF_PROCESSORS)
104+
!endif
105+
102106
.nosilent
103107

104108
<%if(use_vcl)%>

templates/bmakecommon.mpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,5 @@ exeflags = -tR
140140
object_search_path = 0
141141
linker_dll_arguments = $(DLLFLAGS) $(UC_LFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(DLL_EXT) -Xlinker --out-implib -Xlinker $(OUTPUTDIR:\=/)$(NAME).lib $(LIBFILES:\=/) $(RESOURCE:\=/)
142142
linker_exe_arguments = $(EXEFLAGS) $(UC_LFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(EXE_EXT) $(LIBFILES:\=/) $(RESOURCE:\=/)
143-
parallel_flags = --jobs=0
143+
parallel_flags = --jobs=$(MPC_NUMBER_OF_PROCESSORS)
144144
}

0 commit comments

Comments
 (0)