commit | bad43c7af4ceea35c6eca993426459c0e6f8262e | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Jul 12 19:33:32 2017 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Jul 12 19:33:54 2017 -0700 |
tree | 9cecb669fc34a743e3ca6e5d239cd8f625c670c8 | |
parent | 61b7e114dde1230f4f4e9e6f6f401eeb18ecce60 [diff] [blame] |
Fix max build. Test: Built properly. Change-Id: I37b8ac7d42653617be6611b640a883066257214c
diff --git a/benchmarks/util.cpp b/benchmarks/util.cpp index 31d7e04..91cdf7d 100644 --- a/benchmarks/util.cpp +++ b/benchmarks/util.cpp
@@ -55,6 +55,15 @@ return buf_aligned; } +#if defined(__APPLE_) + +// Darwin doesn't support this, so do nothing. +bool LockToCPU(int) { + return false; +} + +#else + bool LockToCPU(int cpu_to_lock) { cpu_set_t cpuset; @@ -90,3 +99,5 @@ return true; } + +#endif