Skip to content

Commit

Permalink
Update RTTI override (premake#4)
Browse files Browse the repository at this point in the history
- Add missing condition parameter
- Use cfg.rtti instead of cfg.flags.NoRTTI
  • Loading branch information
pdoane-blizzard authored and GitHub Enterprise committed Jul 5, 2017
1 parent 02e0e97 commit f7605c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vsandroid_vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@
end
end)

premake.override(vc2010, "runtimeTypeInfo", function(oldfn, cfg)
premake.override(vc2010, "runtimeTypeInfo", function(oldfn, cfg, condition)
if cfg.system == premake.ANDROID then
-- Note: Android defaults to 'off'
if not cfg.flags.NoRTTI then
_p(3,'<RuntimeTypeInfo>true</RuntimeTypeInfo>')
if cfg.rtti then
vc2010.element("RuntimeTypeInfo", condition, "true")
end
else
oldfn(cfg)
oldfn(cfg, condition)
end
end)

Expand Down

0 comments on commit f7605c2

Please sign in to comment.