Make this work on Visual Studio prior to VS2013 too.

This commit is contained in:
Tom van Dijck 2017-06-20 11:12:54 -07:00
parent 6f2e6f5a0e
commit b280f2bebe

View File

@ -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