summaryrefslogtreecommitdiffstats
path: root/src/device/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/meson.build')
-rw-r--r--src/device/meson.build11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/device/meson.build b/src/device/meson.build
index 10723b0..625bd2d 100644
--- a/src/device/meson.build
+++ b/src/device/meson.build
@@ -22,15 +22,18 @@ if get_option('fwbuild')
assert((oledlib != []), 'oled lib not found in the supplied lib directory')
- espmake = find_program('espmake')
printf = find_program('printf')
cat = find_program('cat')
cp = find_program('cp')
make = find_program('make')
- nproc = find_program('nproc')
+ nproc = find_program('nproc', disabler : true)
- nproc_out = run_command(nproc)
- cpus = nproc_out.stdout().strip()
+ if nproc.found()
+ nproc_out = run_command(nproc)
+ cpus = nproc_out.stdout().strip()
+ else
+ cpus = '2'
+ endif
fw_filenames = ['main.ino',
'DejaVu_Sans_Mono_13.h',