Replace the hacky cflags variable with an equally hacky but vastly
more useful magic vars variable.
This commit is contained in:
@@ -79,10 +79,12 @@ local function build_variant(code, cflags)
|
||||
"modules/src/system+lib",
|
||||
"util/data+em_data",
|
||||
},
|
||||
cflags = { cflags }
|
||||
vars = {
|
||||
["+cflags"] = cflags
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
build_variant("e", "-DREADABLE_EM")
|
||||
build_variant("k", "")
|
||||
build_variant("e", { "-DREADABLE_EM" })
|
||||
build_variant("k", { })
|
||||
|
||||
|
||||
@@ -27,11 +27,13 @@ normalrule {
|
||||
|
||||
clibrary {
|
||||
name = "lib_ev",
|
||||
cflags = {
|
||||
"-DPRIVATE=static",
|
||||
"-DEXPORT=",
|
||||
"-DNDEBUG",
|
||||
"-DCHECKING"
|
||||
vars = {
|
||||
["+cflags"] = {
|
||||
"-DPRIVATE=static",
|
||||
"-DEXPORT=",
|
||||
"-DNDEBUG",
|
||||
"-DCHECKING"
|
||||
},
|
||||
},
|
||||
srcs = {
|
||||
"./EM_vars.c",
|
||||
|
||||
Reference in New Issue
Block a user