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

@@ -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", { })

View File

@@ -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",