[Issue 12723] Support compiling C/C++ files in D projects

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 17 00:09:40 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12723

--- Comment #3 from Rainer Schuetze <r.sagitario at gmx.de> ---
I just tried how it works with setting up projects for druntime and phobos, and
adding "dmc -c -o$(IntDir)\$(InputName).obj $(InputPath)" for C files (and
specifying the output path works for Win32 builds. You'll run into problems
with "out of memory" when building unittests (enable single file compilation),
and too much debug info, though, but the latter is an issue with OMF tool
chain.

Trying to get some (android-sdk) VS integration to work which uses MSBuild, I
noticed, these work by switching the "Platform Toolset". This seems like an
"switch everything" approach, but the Intel compiler integration seems to
change/add just a few entries of the project settings. It might be possible to
setup some rules for dmc, or to integrate dmd, though that would exclude VS2008
and earlier from the list of supported versions. I'm not sure stuff like
dependency handling will work smoothly.

Language service (including intellisense) is only slightly coupled with project
managements (mostly reading compile options). That would remain the same.

--


More information about the Digitalmars-d-bugs mailing list