mirror of
https://github.com/xenia-project/premake-core.git
synced 2025-02-24 14:10:45 +00:00
flip to default on for bytecode.
This commit is contained in:
parent
a656792e48
commit
9e1cfc7697
@ -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."
|
||||
}
|
||||
|
||||
--
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user