diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index 062754b1..9b6b167e 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -2174,10 +2174,16 @@ function m.preferredToolArchitecture(prj) - if prj.preferredtoolarchitecture == p.X86_64 then - m.element("PreferredToolArchitecture", nil, 'x64') - elseif prj.preferredtoolarchitecture == p.X86 then - m.element("PreferredToolArchitecture", nil, 'x86') + if _ACTION >= "vs2013" then + if prj.preferredtoolarchitecture == p.X86_64 then + m.element("PreferredToolArchitecture", nil, 'x64') + elseif prj.preferredtoolarchitecture == p.X86 then + m.element("PreferredToolArchitecture", nil, 'x86') + end + else + if prj.preferredtoolarchitecture == p.X86_64 then + m.element("UseNativeEnvironment", nil, 'true') + end end end