Browse Source

[build] Check for mono64 existence before using it for 64-bit builds.

pull/829/head
Joao Matos 8 years ago
parent
commit
438db2854e
  1. 10
      build/Tests.lua

10
build/Tests.lua

@ -72,8 +72,16 @@ function SetupTestGeneratorProject(name, depends) @@ -72,8 +72,16 @@ function SetupTestGeneratorProject(name, depends)
SetupParser()
end
local function get_mono_exe()
if target_architecture() == "x64" then
local _, errorcode = os.outputof("mono64")
return errorcode ~= 127 and "mono64" or "mono"
end
return "mono"
end
function SetupTestGeneratorBuildEvent(name)
local monoExe = target_architecture() == "x64" and "mono64" or "mono"
local monoExe = get_mono_exe()
local runtimeExe = os.is("windows") and "" or monoExe .. " --debug "
if string.starts(action, "vs") then
local exePath = SafePath("$(TargetDir)" .. name .. ".Gen.exe")

Loading…
Cancel
Save