summaryrefslogtreecommitdiff
path: root/lib/thread/bld.sub
diff options
context:
space:
mode:
authorOri Bernstein <ori@mmarkovcorp.com>2017-09-20 12:00:37 -0700
committerOri Bernstein <ori@mmarkovcorp.com>2017-09-20 12:00:37 -0700
commit3a6ce7b6c6f83632d6083ffa37a59c88e49fe737 (patch)
tree1afbcd148e9dab23cc449d6e9cedcc31f8815a13 /lib/thread/bld.sub
parented2494d9fffdfb78d0658e8d3183874e04c8aced (diff)
downloadmc-3a6ce7b6c6f83632d6083ffa37a59c88e49fe737.tar.gz
Add Linux CPU count function.
Linux users deserve fast builds too.
Diffstat (limited to 'lib/thread/bld.sub')
-rw-r--r--lib/thread/bld.sub13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index 02e5e50..c5df621 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -8,16 +8,17 @@ lib thread =
# linux impl of basic thread primitives
#condvar+linux.myr
+ exit+linux-x64.s
mutex+linux.myr
+ ncpu+linux.myr
spawn+linux.myr
- exit+linux-x64.s
# freebsd impl of thread primitives
#condvar+freebsd.myr
+ exit+freebsd-x64.s
mutex+freebsd.myr
- spawn+freebsd.myr
ncpu+freebsd.myr
- exit+freebsd-x64.s
+ spawn+freebsd.myr
# netbsd impl of thread primitives
#condvar+netbsd.myr
@@ -33,14 +34,14 @@ lib thread =
# 9front impl of thread primitives
#condvar+plan9.myr
+ atomic-impl+plan9-x64.s
mutex+plan9.myr
- spawn+plan9.myr
ncpu+plan9.myr
- atomic-impl+plan9-x64.s
+ spawn+plan9.myr
# openbsd impl of thread primitives
- spawn+openbsd.myr
exit+openbsd-x64.s
+ spawn+openbsd.myr
atomic-impl+x64.s
atomic.myr