Added variable-allocation option.
This commit is contained in:
parent
1b514eecff
commit
500a784ab0
1 changed files with 17 additions and 0 deletions
17
premake5.lua
17
premake5.lua
|
@ -1,3 +1,15 @@
|
||||||
|
-- options
|
||||||
|
newoption {
|
||||||
|
trigger = "var-alloc",
|
||||||
|
value = "MODE"
|
||||||
|
description = "Sets how the compiler should allocate variables"
|
||||||
|
allowed = {
|
||||||
|
{ "pack", "Recycle slices as they become unused" },
|
||||||
|
{ "inc", "Every variable gets its own slice" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-- main workspace
|
||||||
workspace "ssc"
|
workspace "ssc"
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
targetdir "bin/%{cfg.buildcfg}"
|
targetdir "bin/%{cfg.buildcfg}"
|
||||||
|
@ -22,6 +34,11 @@ workspace "ssc"
|
||||||
|
|
||||||
links { "System", "arookas", "grammatica-1.6" }
|
links { "System", "arookas", "grammatica-1.6" }
|
||||||
|
|
||||||
|
-- apply options
|
||||||
|
filter "options:var-alloc=pack"
|
||||||
|
defines { "SSC_PACK_VARS" }
|
||||||
|
filter {}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"ssc/**.cs",
|
"ssc/**.cs",
|
||||||
"ssc/**.grammar",
|
"ssc/**.grammar",
|
||||||
|
|
Loading…
Reference in a new issue