From 08ca27a4b99e6d6a81f313599e073dea7d5047cd Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 14:23:24 -0500 Subject: [PATCH] Added clean-symbols option Going to add the actual logic for it later --- premake5.lua | 7 +++++++ readme.md | 1 + 2 files changed, 8 insertions(+) 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)._