summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-08-06 12:02:12 +0200
committerAlejandro Sior <aho@sior.be>2022-08-06 12:02:12 +0200
commit9ed173f524d657559ef27dde0a28eae72c3364bd (patch)
treec1ee760f37f816c072dfd6d88c419085858e4203 /test
parent09d7a6f5793971df4e731c601bd2550bf0a80b3d (diff)
cook: better toolchain system
Diffstat (limited to 'test')
-rw-r--r--test/.build3
-rw-r--r--test/main.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/test/.build b/test/.build
index 141c003..96b8226 100644
--- a/test/.build
+++ b/test/.build
@@ -1,2 +1,3 @@
obj = cc("main.c")
-aout = ld("vol", obj, libs=["Xm", "Xt"]) \ No newline at end of file
+l = lib("vol", obj)
+aout = exe("vol", l, libs=["Xm", "Xt"]) \ No newline at end of file
diff --git a/test/main.c b/test/main.c
index f33d282..25c49da 100644
--- a/test/main.c
+++ b/test/main.c
@@ -10,6 +10,7 @@
int lol() {
printf("yes!\n");
+ return 0;
}
int main(int argc, char **argv) {