Added per file rtti generation for VS

This commit is contained in:
R. Blaine Whittle 2017-03-27 14:24:05 -07:00 committed by Tom van Dijck
parent 6907f6785c
commit 3ff5343769

View File

@ -664,6 +664,7 @@
m.basicRuntimeChecks,
m.exceptionHandling,
m.compileAsManaged,
m.runtimeTypeInfo,
}
else
return {
@ -2062,11 +2063,11 @@
end
end
function m.runtimeTypeInfo(cfg)
function m.runtimeTypeInfo(cfg, condition)
if cfg.rtti == p.OFF and cfg.clr == p.OFF then
m.element("RuntimeTypeInfo", nil, "false")
m.element("RuntimeTypeInfo", condition, "false")
elseif cfg.rtti == p.ON then
m.element("RuntimeTypeInfo", nil, "true")
m.element("RuntimeTypeInfo", condition, "true")
end
end