| Index: runtime/bin/platform_macos.cc
|
| diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_macos.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aee6f89200291c56e4971b66b03f0c06372805c7
|
| --- /dev/null
|
| +++ b/runtime/bin/platform_macos.cc
|
| @@ -0,0 +1,17 @@
|
| +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +#include "bin/platform.h"
|
| +
|
| +#include <unistd.h>
|
| +
|
| +
|
| +int Platform::NumberOfProcessors() {
|
| + return sysconf(_SC_NPROCESSORS_ONLN);
|
| +}
|
| +
|
| +
|
| +const char* Platform::OperatingSystem() {
|
| + return "macos";
|
| +}
|
|
|