summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-24 23:23:38 -0400
committerOri Bernstein <ori@eigenstate.org>2017-07-24 23:23:38 -0400
commit6643dc05e703fdde67e933f16b7879a62707e13e (patch)
treef20344261e7ce9f1f64d4bf5c2e03398f8cc9b6f
parent4ab19200919a93e45e0ff90bee590029511c580d (diff)
downloadmc-6643dc05e703fdde67e933f16b7879a62707e13e.tar.gz
Add fallback ncpu for all OSes.
It just returns a hard-coded value, but that should be good enough for correctness.
-rw-r--r--lib/thread/bld.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index 5a2f34f..b1510a5 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -3,6 +3,9 @@ lib thread =
hookstd.myr # install thread hooks
mutex.myr # fallback, for unimplemented platforms
+ #generic fallbacks
+ ncpu.myr
+
# linux impl of basic thread primitives
#condvar+linux.myr
mutex+linux.myr