diff options
| -rw-r--r-- | .build | 4 | ||||
| -rwxr-xr-x | cook.py | 1 | ||||
| -rw-r--r-- | test/.build | 6 |
3 files changed, 4 insertions, 7 deletions
@@ -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) @@ -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'] |
