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-25 22:21:13 -0700
commitea020690dfaacd85ca06ed17f7b3651de20132e7 (patch)
tree9b13a173b5302f35ca6414e9d18e891211978b06
parentcb85a03cb45a25936ce0afaa17651636ca566606 (diff)
downloadmc-ea020690dfaacd85ca06ed17f7b3651de20132e7.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