D: Do not output DCompile block in vstudio if no d file in project

This commit is contained in:
Thomas Desveaux 2018-05-29 19:26:27 +02:00
parent 3d522e9068
commit b1efce39df

View File

@ -50,9 +50,11 @@
end
function m.dCompile(cfg)
p.push('<DCompile>')
p.callArray(m.elements.dCompile, cfg)
p.pop('</DCompile>')
if config.hasFile(cfg, path.isdfile) then
p.push('<DCompile>')
p.callArray(m.elements.dCompile, cfg)
p.pop('</DCompile>')
end
end
---