Skip to content

Commit

Permalink
Make this work on Visual Studio prior to VS2013 too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom van Dijck committed Jun 20, 2017
1 parent 9db7b30 commit 6b33e89
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modules/vstudio/vs2010_vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b33e89

Please sign in to comment.