From 175d68360da8cd60e3c9f69bca5ca0c4a8f06aed Mon Sep 17 00:00:00 2001 From: Austin Appleby Date: Sun, 19 May 2024 20:40:10 -0700 Subject: [PATCH] checkpoint --- config/rules.hancho | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/rules.hancho b/config/rules.hancho index 76eb540..b46a2fc 100644 --- a/config/rules.hancho +++ b/config/rules.hancho @@ -38,7 +38,7 @@ def compile_srcs(*args, in_srcs, **kwargs): includes = "-I{repo_path}", defines = "", out_obj = "{swap_ext(in_src, '.o')}", - dep_gcc = "{swap_ext(in_src, '.d')}", + depfile = "{swap_ext(in_src, '.d')}", ) return [command(config, in_src = file) for file in hancho.flatten(in_srcs)] @@ -59,10 +59,11 @@ def c_test(*args, in_srcs = [], in_objs = [], out_bin, **kwargs): result = hancho.Task( config, desc = "Running test {rel(in_test)}", - command = "rm -f {rel(out_pass)} && {in_test} {args} && touch {rel(out_pass)}", + command = "{in_test} {args}", in_test = bin, - out_pass = "{swap_ext(in_test, '.pass')}", - args = "" + out_log = "{in_test}.test", + args = "", + is_test = True ) return result