Skip to content

Commit 7aac0af

Browse files
committed
Allow to force to do not use -j as make argument
Close #828 (hopefully)
1 parent 26d7f06 commit 7aac0af

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Makefile.rule

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ NO_AFFINITY = 1
112112
# NO_PARALLEL_MAKE = 1
113113

114114
# Force number of make jobs. The default is the number of logical CPU of the host.
115-
# This is particularly useful when using distcc
115+
# This is particularly useful when using distcc.
116+
# A negative value will disable adding a -j flag to make, allowing to use a parent
117+
# make -j value. This is usefull to call OpenBLAS make from an other project
118+
# makefile
116119
# MAKE_NB_JOBS = 2
117120

118121
# If you would like to know minute performance report of GotoBLAS.

getarch.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,12 @@ int main(int argc, char *argv[]){
10131013
#endif
10141014

10151015
#ifdef MAKE_NB_JOBS
1016+
#if MAKE_NB_JOBS > 0
10161017
printf("MAKE += -j %d\n", MAKE_NB_JOBS);
1018+
#else
1019+
// Let make use parent -j argument or -j1 if there
1020+
// is no make parent
1021+
#endif
10171022
#elif NO_PARALLEL_MAKE==1
10181023
printf("MAKE += -j 1\n");
10191024
#else

0 commit comments

Comments
 (0)