diff options
| author | DavePutz <dwputz@gmail.com> | 2020-11-04 15:02:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-04 15:02:52 -0600 |
| commit | 2b4d12abcc09b22985d456f3a05fc8511fc9def4 (patch) | |
| tree | 9b5f71c011d8593a9955fd89c97ab62a4fc59afa /py | |
| parent | 3856da9968044154219f3578df91106c76b8a59a (diff) | |
| parent | e02539bdf56d67b274851f23bf9594080f490122 (diff) | |
Merge pull request #33 from adafruit/main
update from adafruit/main
Diffstat (limited to 'py')
| -rw-r--r-- | py/mkenv.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mkenv.mk b/py/mkenv.mk index b76dd60f8..cb678e8e7 100644 --- a/py/mkenv.mk +++ b/py/mkenv.mk @@ -55,6 +55,8 @@ PYTHON3 ?= python3 RM = rm RSYNC = rsync SED = sed +# Linux has 'nproc', macOS has 'sysctl -n hw.logicalcpu', this is cross-platform +NPROC = $(PYTHON) -c 'import multiprocessing as mp; print(mp.cpu_count())' AS = $(CROSS_COMPILE)as CC = $(CROSS_COMPILE)gcc |
