Add targetMachine property.

This commit is contained in:
Tom van Dijck 2015-11-03 11:45:12 -08:00
parent 816cc1a878
commit d38f9a9292

View File

@ -406,6 +406,7 @@
m.treatLinkerWarningAsErrors,
m.ignoreDefaultLibraries,
m.largeAddressAware,
m.targetMachine,
m.additionalLinkOptions,
}
end
@ -430,6 +431,7 @@
if cfg.kind == p.STATICLIB then
return {
m.treatLinkerWarningAsErrors,
m.targetMachine,
m.additionalLinkOptions,
}
else
@ -953,6 +955,18 @@
end
function m.targetMachine(cfg)
local targetmachine = {
x86 = "MachineX86",
x86_64 = "MachineX64",
}
local value = targetmachine[cfg.architecture]
if (value ~= nil) then
m.element("TargetMachine", nil, '%s', value)
end
end
function m.additionalCompileOptions(cfg, condition)
if #cfg.buildoptions > 0 then
local opts = table.concat(cfg.buildoptions, " ")