summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-02-17 22:21:41 -0800
committerOri Bernstein <ori@eigenstate.org>2017-02-17 23:32:19 -0800
commit61a91a2cc9be621ee517b2cb4114922bd5da351f (patch)
tree2dbf60c0c0d4b03c65c59146f44e4f7c8f1c9cb2 /lib/thread
parent210b24e9cf07baef21fb0fd943f81f38a3196945 (diff)
downloadmc-61a91a2cc9be621ee517b2cb4114922bd5da351f.tar.gz
Search for usefiles relative to the output.
For most uses, this is equivalent to compiler cwd, but supports out of tree builds better. It also means that builds behave the same way regardless of the directory that the compiler is run from, which is convenient for testing. This also drops support for `.use` suffixes on local uses.
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/condvar+freebsd.myr6
-rw-r--r--lib/thread/condvar+linux.myr6
-rw-r--r--lib/thread/future.myr2
-rw-r--r--lib/thread/mutex+freebsd.myr4
-rw-r--r--lib/thread/mutex+linux.myr4
-rw-r--r--lib/thread/mutex+plan9.myr4
-rw-r--r--lib/thread/mutex.myr4
-rw-r--r--lib/thread/test/atomic.myr2
-rw-r--r--lib/thread/test/condvar.myr2
-rw-r--r--lib/thread/test/future.myr2
-rw-r--r--lib/thread/test/mutex.myr2
11 files changed, 19 insertions, 19 deletions
diff --git a/lib/thread/condvar+freebsd.myr b/lib/thread/condvar+freebsd.myr
index 24e5a32..65267a4 100644
--- a/lib/thread/condvar+freebsd.myr
+++ b/lib/thread/condvar+freebsd.myr
@@ -1,9 +1,9 @@
use std
use sys
-use "atomic.use"
-use "common.use"
-use "mutex.use"
+use "atomic"
+use "common"
+use "mutex"
pkg thread =
type cond = struct
diff --git a/lib/thread/condvar+linux.myr b/lib/thread/condvar+linux.myr
index 9e288d7..cd4ab8c 100644
--- a/lib/thread/condvar+linux.myr
+++ b/lib/thread/condvar+linux.myr
@@ -1,9 +1,9 @@
use std
use sys
-use "atomic.use"
-use "common.use"
-use "mutex.use"
+use "atomic"
+use "common"
+use "mutex"
pkg thread =
type cond = struct
diff --git a/lib/thread/future.myr b/lib/thread/future.myr
index da6252b..5637e6d 100644
--- a/lib/thread/future.myr
+++ b/lib/thread/future.myr
@@ -1,6 +1,6 @@
use std
-use "mutex.use"
+use "mutex"
pkg thread =
type future(@a) = struct
diff --git a/lib/thread/mutex+freebsd.myr b/lib/thread/mutex+freebsd.myr
index d66fd53..fc1f8c2 100644
--- a/lib/thread/mutex+freebsd.myr
+++ b/lib/thread/mutex+freebsd.myr
@@ -1,8 +1,8 @@
use std
use sys
-use "atomic.use"
-use "common.use"
+use "atomic"
+use "common"
pkg thread =
type mutex = struct
diff --git a/lib/thread/mutex+linux.myr b/lib/thread/mutex+linux.myr
index 37bec62..22b9904 100644
--- a/lib/thread/mutex+linux.myr
+++ b/lib/thread/mutex+linux.myr
@@ -1,8 +1,8 @@
use std
use sys
-use "atomic.use"
-use "common.use"
+use "atomic"
+use "common"
pkg thread =
type mutex = struct
diff --git a/lib/thread/mutex+plan9.myr b/lib/thread/mutex+plan9.myr
index 7c87218..e91cd90 100644
--- a/lib/thread/mutex+plan9.myr
+++ b/lib/thread/mutex+plan9.myr
@@ -2,8 +2,8 @@ use std
use sys
-use "atomic.use"
-use "common.use"
+use "atomic"
+use "common"
pkg thread =
type mutex = struct
diff --git a/lib/thread/mutex.myr b/lib/thread/mutex.myr
index 6dc4a44..5b90574 100644
--- a/lib/thread/mutex.myr
+++ b/lib/thread/mutex.myr
@@ -2,8 +2,8 @@ use std
use sys
-use "atomic.use"
-use "common.use"
+use "atomic"
+use "common"
pkg thread =
type mutex = struct
diff --git a/lib/thread/test/atomic.myr b/lib/thread/test/atomic.myr
index c005677..3dd3284 100644
--- a/lib/thread/test/atomic.myr
+++ b/lib/thread/test/atomic.myr
@@ -1,7 +1,7 @@
use std
use thread
-use "test/util.use"
+use "util"
const Nherd = 20
diff --git a/lib/thread/test/condvar.myr b/lib/thread/test/condvar.myr
index e8670b1..0f1de58 100644
--- a/lib/thread/test/condvar.myr
+++ b/lib/thread/test/condvar.myr
@@ -1,7 +1,7 @@
use std
use thread
-use "test/util.use"
+use "util"
const Nwakes = 1000
diff --git a/lib/thread/test/future.myr b/lib/thread/test/future.myr
index 63969a4..e69e1af 100644
--- a/lib/thread/test/future.myr
+++ b/lib/thread/test/future.myr
@@ -2,7 +2,7 @@ use std
use sys
use thread
-use "test/util.use"
+use "util"
var fut
var nready : int32
diff --git a/lib/thread/test/mutex.myr b/lib/thread/test/mutex.myr
index e29ae85..b366637 100644
--- a/lib/thread/test/mutex.myr
+++ b/lib/thread/test/mutex.myr
@@ -1,7 +1,7 @@
use std
use thread
-use "test/util.use"
+use "util"
const Nherd = 20