From b1efce39df23cb582d6dbd23f4c253606cef1dad Mon Sep 17 00:00:00 2001 From: Thomas Desveaux Date: Tue, 29 May 2018 19:26:27 +0200 Subject: [PATCH] D: Do not output DCompile block in vstudio if no d file in project --- modules/d/actions/vcxproj.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/d/actions/vcxproj.lua b/modules/d/actions/vcxproj.lua index 4e6ea910..8fba71b6 100644 --- a/modules/d/actions/vcxproj.lua +++ b/modules/d/actions/vcxproj.lua @@ -50,9 +50,11 @@ end function m.dCompile(cfg) - p.push('') - p.callArray(m.elements.dCompile, cfg) - p.pop('') + if config.hasFile(cfg, path.isdfile) then + p.push('') + p.callArray(m.elements.dCompile, cfg) + p.pop('') + end end ---