[+] Infinite action arg length via a temp file

[-] Old spurious comment and dbg print
This commit is contained in:
Reece Wilson 2022-03-04 17:27:24 +00:00
parent 45e42e7122
commit 2b27da2c2c
4 changed files with 9 additions and 7 deletions

View File

@ -123,7 +123,8 @@ local addBuildCommand = function(when, scriptType, path, cwdRelToProject, args)
sRelShip = Aurora.Settings.sRelShip,
sRelWd = Aurora.Settings.sRelWd,
sRelSymbols = Aurora.Settings.sRelSymbols,
sRelLinkLibs = Aurora.Settings.sRelLinkLibs
sRelLinkLibs = Aurora.Settings.sRelLinkLibs,
sRelCompilerWd = Aurora.Settings.sRelCompilerWd
}
command = command .. " --settings=" .. base64.encode(json.encode(settings))
@ -150,7 +151,10 @@ local addBuildCommand = function(when, scriptType, path, cwdRelToProject, args)
end
if (args) then
command = command .. " --additional=\"" .. base64.encode(args) .. "\""
local buf = args--base64.encode(args)
local hash = string.sha1(buf)
io.writefile(_G.path.join(Aurora.Settings.sAbsCompilerWd, hash .. ".args"), buf)
command = command .. " --additional=\"" .. hash .. "\""
end
if (scriptType == "lua") then

View File

@ -76,7 +76,9 @@ end
local args = _OPTIONS["additional"]
if (args) then
args = base64.decode(args)
local path = _G.path.join(Aurora.Settings.sAbsCompilerWd, args .. ".args")
local argFileContents = io.readfile(path)
args = argFileContents
end
local binSuffx = ""

View File

@ -9,8 +9,6 @@ for s in ciaData:gmatch("[^\r\n]+") do
table.insert(exports, s)
end
-- so, we can't pull the target module name until we've actually built the binary
-- we'll just have to guess for now
local dllName = auBuild.projectTargetName .. ".dll"
local buffer = ""

View File

@ -1,5 +1,3 @@
print("hello paths")
if (not Aurora.Settings.sAbsRoot) then
Aurora.Settings.sAbsRoot = os.realpath(os.getcwd() .. "/../..") .. "/"
end