diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index a353f514..c5d10be5 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -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, " ")