Bug 17126 – [Visual D] Enables D compiler on C++ projects by default
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P3
Component
visuald
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2017-01-29T10:38:00Z
Last change time
2017-02-16T19:42:28Z
Assigned to
nobody
Creator
ehysta
Comments
Comment #0 by ehysta — 2017-01-29T10:38:25Z
VS 2015.
After update to VisualD 0.44.beta-2 it enables DMD for C++ projects (sic!) by default (wtf?), which causes a phobos64.lib linking.
I found an option: Project Properties - General - D Compiler, with note: Disable to avoid some changed linked defaults.
Currently "DMD - Reference compiler" is set, choosing "disable" eliminates phobos linking, but adds a new option to project: "<DCompiler>None</DCompiler>", which is definitely no go (again, this is C++ project, none of D projects in my solution).
Comment #1 by r.sagitario — 2017-01-29T14:33:39Z
Thanks for reporting.
This definitely should not happen unless you have a *.d or *.di file in your project. It is expected that there is an additional entry "D Compiler" on the General page, but it should not have any effect if untouched.
Comment #2 by ehysta — 2017-01-29T15:25:52Z
There are no such files in project.
Also I wonder, how phobos appears among libraries in %(AdditionalDependencies) macro, because Property Manager doesn't show any *.props files related to VisualD.
Comment #3 by r.sagitario — 2017-01-29T17:04:11Z
The D compilation is realized by automaticlly including a couple of props and targets files inside the ImportBefore/ImportAfter folders of the msbuild folders.
I can reproduce the problem, the respective settings are changed unconditionally right now. I'll look into it...