Build the examples when doing a normal build; this exercises the compiler as a

whole and is one step further towards a proper test suite.
This commit is contained in:
David Given
2016-08-20 14:05:24 +02:00
parent 53c9731036
commit 1a7b4f8729
4 changed files with 77 additions and 6 deletions

View File

@@ -216,6 +216,7 @@ definerule("cprogram",
{
srcs = { type="targets", default={} },
deps = { type="targets", default={} },
_clibrary = { type="object", default=clibrary },
commands = {
type="strings",
default={
@@ -229,7 +230,7 @@ definerule("cprogram",
for _, f in pairs(
matching(
filenamesof(
clibrary {
e._clibrary {
name = e.name .. "/main",
cwd = e.cwd,
srcs = e.srcs,