fc1476c88b
Our build enables assertions in some other ACK tools (like assemblers and LLgen), but disabled them in ego until now. Bug #203 becomes a failed assertion in ego's SR phase: sr: util/ego/sr/sr_reduce.c:483: fix_header: Assertion `INSTR(e) == ps_end' failed. Comment out 2 assertions in util/ego/share, because they fail on systems with 4-byte int, 8-byte long.
61 lines
906 B
Lua
61 lines
906 B
Lua
cprogram {
|
|
name = "makecldef",
|
|
srcs = { "./makecldef.c" }
|
|
}
|
|
|
|
normalrule {
|
|
name = "classdefs_h",
|
|
ins = {
|
|
"+makecldef",
|
|
matching(filenamesof("modules/src/em_data+lib"), "em_mnem%.h$"),
|
|
"./cldefs.src"
|
|
},
|
|
outleaves = { "classdefs.h" },
|
|
commands = {
|
|
"%{ins} > %{outs}"
|
|
}
|
|
}
|
|
|
|
normalrule {
|
|
name = "pop_push_h",
|
|
ins = {
|
|
"./pop_push.awk",
|
|
"h/em_table",
|
|
},
|
|
outleaves = { "pop_push.h" },
|
|
commands = {
|
|
"awk -f %{ins[1]} < %{ins[2]} > %{outs}"
|
|
}
|
|
}
|
|
|
|
clibrary {
|
|
name = "lib",
|
|
srcs = {
|
|
"./debug.c",
|
|
"./global.c",
|
|
"./files.c",
|
|
"./go.c",
|
|
"./map.c",
|
|
"./utils.c",
|
|
"./get.c",
|
|
"./put.c",
|
|
"./alloc.c",
|
|
"./lset.c",
|
|
"./cset.c",
|
|
"./parser.c",
|
|
"./stack_chg.c",
|
|
"./locals.c",
|
|
"./init_glob.c",
|
|
},
|
|
deps = {
|
|
"./*.h",
|
|
"+classdefs_h",
|
|
"+pop_push_h",
|
|
"h+emheaders",
|
|
"modules/src/em_data+lib",
|
|
},
|
|
vars = {
|
|
["+cflags"] = {"-DDEBUG", "-DVERBOSE", "-DNOTCOMPACT"}
|
|
}
|
|
}
|