Commit 8d8ee780 authored by Demetrios Papadopoulos's avatar Demetrios Papadopoulos Committed by Commit Bot

Fix third_party/closure_compiler/run_compiler script to run on Mac.

Bug: None
Change-Id: Ie24bfa53b494775cd6c3f140a6e5655086c37b6c
Reviewed-on: https://chromium-review.googlesource.com/570190Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486546}
parent 89e3d613
...@@ -12,4 +12,11 @@ export GYP_GENERATORS="ninja" ...@@ -12,4 +12,11 @@ export GYP_GENERATORS="ninja"
tools/gyp/gyp --no-circular-check third_party/closure_compiler/compiled_resources2.gyp tools/gyp/gyp --no-circular-check third_party/closure_compiler/compiled_resources2.gyp
ninja -C out/Default -j `nproc` $@ os_name=`uname -s`
cores_count=1
case "$os_name" in
"Darwin") cores_count=`sysctl -n hw.ncpu` ;;
"Linux") cores_count=`nproc` ;;
esac
ninja -C out/Default -j $cores_count $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment