summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro W. Sior <aho@sior.be>2023-01-23 18:32:13 +0100
committerAlejandro W. Sior <aho@sior.be>2023-01-23 18:32:13 +0100
commit05ff2da0c6881c90faa235436585ef443b17faa6 (patch)
treef83a19c8c276d58bc3abb28e64105885ba13cfb0
parentd0759d3282025f310ecd566c55dcf214b0cbb1b8 (diff)
cook: remove line
-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']