summaryrefslogtreecommitdiff
path: root/lib/thread/bld.sub
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-05 23:00:39 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-05 23:00:39 -0700
commitdb048ccb7e6b80bcd2f5cf60f409d9b31a21dafe (patch)
treec2c2b1c77ee73cd116fb4f4c61a24b0189599c7b /lib/thread/bld.sub
parentb2d29ed0eebd0e3e2c162b5e83d6d0e8b6ddee57 (diff)
downloadmc-db048ccb7e6b80bcd2f5cf60f409d9b31a21dafe.tar.gz
Integrate libthread into the build.
Diffstat (limited to 'lib/thread/bld.sub')
-rw-r--r--lib/thread/bld.sub31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
new file mode 100644
index 0000000..ccb1a56
--- /dev/null
+++ b/lib/thread/bld.sub
@@ -0,0 +1,31 @@
+lib thread =
+ common.myr
+
+ # linux impl of basic thread primitives
+ condvar+linux.myr
+ mutex+linux.myr
+ spawn+linux.myr
+ exit+linux-x64.s
+
+ # freebsd impl of thread primitives
+ condvar+freebsd.myr
+ mutex+freebsd.myr
+ spawn+freebsd.myr
+ exit+freebsd-x64.s
+
+ # osx impl of thread primitives
+ #condvar+osx.myr
+ mutex+osx.myr
+ spawn+osx.myr
+ start+osx-x64.s
+
+ # 9front impl of thread primitives
+ #condvar+plan9.myr
+ mutex+plan9.myr
+ spawn+plan9.myr
+ atomic-impl+plan9-x64.s
+
+ atomic-impl+x64.s
+ atomic.myr
+;;
+