shithub: mc

Download patch

ref: db048ccb7e6b80bcd2f5cf60f409d9b31a21dafe
parent: b2d29ed0eebd0e3e2c162b5e83d6d0e8b6ddee57
author: Ori Bernstein <ori@eigenstate.org>
date: Thu May 5 19:00:39 EDT 2016

Integrate libthread into the build.

--- a/lib/bld.sub
+++ b/lib/bld.sub
@@ -1,8 +1,9 @@
 sub =
-	sys
-	std
 	bio
-	regex
 	cryptohash
 	inifile
+	regex
+	std
+	sys
+	thread
 ;;
--- a/lib/thread/bld.proj
+++ /dev/null
@@ -1,31 +1,0 @@
-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
-;;
-
--- /dev/null
+++ b/lib/thread/bld.sub
@@ -1,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
+;;
+