Replace the hacky cflags variable with an equally hacky but vastly

more useful magic vars variable.
This commit is contained in:
David Given
2016-07-27 00:10:15 +02:00
parent cdeea836f2
commit f9c77fca03
6 changed files with 58 additions and 32 deletions

View File

@@ -6,7 +6,12 @@ cprogram {
-- do this.
srcs = { "./src/*.c" },
cflags = { "-DLIBDIR=\\\""..posix.getcwd().."/"..cwd().."/lib\\\"", "-DNON_CORRECTING" },
vars = {
["+cflags"] = {
"-DLIBDIR=\\\""..posix.getcwd().."/"..cwd().."/lib\\\"",
"-DNON_CORRECTING"
},
}
}
definerule("llgen",