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 e1f20ad commit b59af40Copy full SHA for b59af40
tools/check-cppcheck.sh
@@ -15,7 +15,13 @@
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
+else
23
+ CPPCHECK_JOBS=${CPPCHECK_JOBS:=1}
24
+fi
25
26
JERRY_CORE_DIRS=`find jerry-core -type d`
27
JERRY_LIBC_DIRS=`find jerry-libc -type d`
0 commit comments