Unverified 提交 ab77dab4 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

Merge pull request #349 from smoke/fix/worker-cpu-cores-detection-to-use-sh-so-it-is-portable

fix(worker): cpu cores detection using sh and default to 4
......@@ -6,7 +6,7 @@
# with gyp and Python3.
PYTHON ?= $(shell command -v python2 2> /dev/null || echo python)
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
CORES ?= $(shell ${ROOT_DIR}/scripts/cpu_cores.sh)
CORES ?= $(shell ${ROOT_DIR}/scripts/cpu_cores.sh || echo 4)
MEDIASOUP_BUILDTYPE ?= Release
GULP = ../node_modules/.bin/gulp
LCOV = ./deps/lcov/bin/lcov
......
#!/usr/bin/env bash
#!/usr/bin/env sh
set -e
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论