From 05ff2da0c6881c90faa235436585ef443b17faa6 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Mon, 23 Jan 2023 18:32:13 +0100 Subject: cook: remove line --- .build | 4 +++- cook.py | 1 - test/.build | 6 +----- 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'] -- cgit v1.2.3