Skip to content

Commit

Permalink
Merge pull request #1098 from tdesveauxPKFX/d/vstudio/remove-dcompile…
Browse files Browse the repository at this point in the history
…-block

Prevent D module from adding D block in unrelated projects
  • Loading branch information
tdesveauxPKFX authored May 29, 2018
2 parents 3d522e9 + b1efce3 commit ff732af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/d/actions/vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

---
Expand Down

0 comments on commit ff732af

Please sign in to comment.