Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed May 20, 2024
1 parent c6edce6 commit 175d683
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/rules.hancho
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand All @@ -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

Expand Down

0 comments on commit 175d683

Please sign in to comment.