Replace the hacky cflags variable with an equally hacky but vastly
more useful magic vars variable.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user