From 9e1cfc7697302a413a926f345fe47bb50cf494a3 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Mon, 5 Oct 2015 15:13:50 -0700 Subject: [PATCH] flip to default on for bytecode. --- premake5.lua | 4 ++-- scripts/embed.lua | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/premake5.lua b/premake5.lua index ad84b152..6622a100 100644 --- a/premake5.lua +++ b/premake5.lua @@ -74,8 +74,8 @@ } newoption { - trigger = "bytecode", - description = "Embed bytecode instead of stripped souce code." + trigger = "no-bytecode", + description = "Don't embed bytecode, but instead use the stripped souce code." } -- diff --git a/scripts/embed.lua b/scripts/embed.lua index f2b0322a..78796780 100644 --- a/scripts/embed.lua +++ b/scripts/embed.lua @@ -67,8 +67,8 @@ local function addScript(result, filename, name, data) if not data then - if _OPTIONS.bytecode then - print("Compiling... " .. filename) + if not _OPTIONS["no-bytecode"] then + verbosef("Compiling... " .. filename) local output = path.replaceextension(filename, ".luac") local res, err = os.compile(filename, output); if res ~= nil then @@ -117,6 +117,7 @@ -- Generate table of embedded content. local contentTable = {} + print("Compiling... ") for mi = 1, #manifests do local manifestName = manifests[mi] local manifestDir = path.getdirectory(manifestName)