skia2/gn/toolchain/num_cpus.py

13 lines
256 B
Python
Raw Normal View History

#!/usr/bin/env python
#
# Copyright 2019 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import multiprocessing
print(multiprocessing.cpu_count())