mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-29 12:18:53 +00:00
Remove NPROCS from Makefile, make is able to automatically detect the optimal number of parallel threads
This commit is contained in:
parent
490ff03fe1
commit
e5adccbf38
@ -4,17 +4,16 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
##
|
##
|
||||||
## Detect number of processors
|
## Detect host OS
|
||||||
##
|
##
|
||||||
|
|
||||||
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
|
|
||||||
OS := $(shell uname)
|
OS := $(shell uname)
|
||||||
|
|
||||||
##
|
##
|
||||||
## Makefile flags
|
## Makefile flags
|
||||||
##
|
##
|
||||||
|
|
||||||
MAKEFLAGS += -l -j $(NPROCS) -rR --no-print-directory
|
MAKEFLAGS += -l -j -rR --no-print-directory
|
||||||
|
|
||||||
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
|
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
|
||||||
MAKEFLAGS += -j 1
|
MAKEFLAGS += -j 1
|
||||||
|
Loading…
Reference in New Issue
Block a user