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 c2448f4 commit f4c3412Copy full SHA for f4c3412
utils/build-script-impl
@@ -194,11 +194,19 @@ function to_varname() {
194
}
195
196
function get_make_parallelism() {
197
- if [ "$(uname -s)" == "Darwin" ] ; then
198
- sysctl -n hw.activecpu
199
- else
200
- echo 8
201
- fi
+ case "$(uname -s)" in
+ Linux)
+ nproc
+ ;;
+
202
+ Darwin)
203
+ sysctl -n hw.activecpu
204
205
206
+ *)
207
+ echo 8
208
209
+ esac
210
211
212
function get_dsymutil_parallelism() {
0 commit comments