diff --git a/premake5.lua b/premake5.lua index bf539ab..7b504e9 100644 --- a/premake5.lua +++ b/premake5.lua @@ -9,6 +9,11 @@ newoption { } } +newoption { + trigger = "clean-symbols", + description = "Cleans up the symbol table from unused symbols" +} + -- main workspace workspace "ssc" configurations { "Debug", "Release" } @@ -37,6 +42,8 @@ workspace "ssc" -- apply options filter "options:var-alloc=pack" defines { "SSC_PACK_VARS" } + filter "options:clean-symbols" + defines { "SSC_CLEAN_SYMBOLS" } filter {} files { diff --git a/readme.md b/readme.md index 6323da8..df979c9 100644 --- a/readme.md +++ b/readme.md @@ -52,6 +52,7 @@ There are also several compile-time options which are able to be configured via |Option|Description| |------|-----------| |var-alloc|Affects how variables are allocated slices. Available values are _pack_ and _inc_.| +|clean-symbols|Cleans symbol table of unused symbols.| _**Note:** A Java runtime compatible with JDK 1.5 is required for generating the Grammatica parser classes during compilation. For more information, see Grammatica's official [installation documentation](http://grammatica.percederberg.net/doc/release/install.html)._