flip to default on for bytecode.

This commit is contained in:
Tom van Dijck 2015-10-05 15:13:50 -07:00
parent a656792e48
commit 9e1cfc7697
2 changed files with 5 additions and 4 deletions

View File

@ -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."
}
--

View File

@ -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)