We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005f73a commit 6f2b200Copy full SHA for 6f2b200
tools/check-cppcheck.sh
@@ -15,7 +15,11 @@
15
# See the License for the specific language governing permissions and
16
# limitations under the License.
17
18
-CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(nproc)}
+if [[ "$OSTYPE" == "linux"* ]]; then
19
+ CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(nproc)}
20
+elif [[ "$OSTYPE" == "darwin"* ]]; then
21
+ CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(sysctl -n hw.ncpu)}
22
+fi
23
24
JERRY_CORE_DIRS=`find jerry-core -type d`
25
JERRY_LIBC_DIRS=`find jerry-libc -type d`
0 commit comments