summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build4
-rwxr-xr-xcook.py1
-rw-r--r--test/.build6
3 files changed, 4 insertions, 7 deletions
diff --git a/.build b/.build
index fca48dd..e35e8b6 100644
--- a/.build
+++ b/.build
@@ -3,4 +3,6 @@ this.c = cook.c
this.ld_args = []
this.deps = []
-this.c.exe("vol", this('test').link)
+objects = this.c.cc(deps = [this('test')])
+
+this.c.exe("vol", objects)
diff --git a/cook.py b/cook.py
index 50957b2..9ff581a 100755
--- a/cook.py
+++ b/cook.py
@@ -231,7 +231,6 @@ class CC(Vec):
def gen(self, *args, extra_args = [], include_dirs = [], deps = [], **kwargs):
inputs = File.resolve(args)
-
deps = flatten(deps)
include_dirs += [d.include_dirs for d in deps if d.include_dirs]
diff --git a/test/.build b/test/.build
index d313d01..474ca48 100644
--- a/test/.build
+++ b/test/.build
@@ -1,5 +1 @@
-this.link = this.c.lib("test",
- this.c.cc(
- "hai.c"
- )
-)
+this.source = ['hai.c']