Skip to content

Instantly share code, notes, and snippets.

@CallMeZhou
Created September 6, 2021 19:12
Show Gist options
  • Save CallMeZhou/ca50fbe4d9107955552d7f1d7092af9b to your computer and use it in GitHub Desktop.
Save CallMeZhou/ca50fbe4d9107955552d7f1d7092af9b to your computer and use it in GitHub Desktop.
// compile the source code
var compile_rules = require("bldz/std/exp/rules/compile").cobol().rules;
// bind the object files
var bind_rules = require("bldz/std/exp/rules/binder").bind({
deps: compile_rules,
outs: ["hey-cobol"],
syslibs: ["//CEE.SCEELKED"]
}).rules;
// run the test
genrule_usscmd({
name: "run",
deps: bind_rules,
exec: "$RULE_DEPS_OUTS",
dummy: Date.now()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment