D Development Tools 0.7.0 Preview Release

Bruno Medeiros brunodomedeiros+dng at gmail.com
Tue Jul 9 06:29:23 PDT 2013


On 08/07/2013 09:17, eles wrote:
> On Friday, 5 July 2013 at 20:38:28 UTC, Bruno Medeiros wrote:
>> DMD:
>> [linux|osx|windows]/bin/
>> src/druntime/import
>> src/phobos
>>
>> DMD on Linux global install:
>> usr/bin
>> include/d/dmd
>
> Here is my layout, that I had to manually add. It is the layout
> installed on Debian/Ubuntu by the official DMD .deb packages here
> http://dlang.org/download.html
>
> /usr/bin/dmd
>
> /usr/include/dmd/phobos
> /usr/include/dmd/druntime/import
>

I'll have to support that as a new feature:
http://code.google.com/p/ddt/issues/detail?id=3
Should be easy, just a few changes to:
http://code.google.com/p/ddt/source/browse/org.dsource.ddt.ide.core.tests/src-test/mmrnmhrm/core/launch/DMDInstallType_Test.java
and
http://code.google.com/p/ddt/source/browse/org.dsource.ddt.ide.core/src/mmrnmhrm/core/launch/DMDInstallType.java


> (BTW, why that "import" folder in the druntime configuration? It
> shouldn't be there, I think, but that's not a problem of DDT).
>
>

Why shouldn't it be there? The standard lib is divided in two parts, the 
runtime and Phobos.


>> GDC:
>> bin/
>> include/d2/<any dir that contains an object.di>
>
> /usr/bin/gdc
>
> (no interpreter system libraries)
>

There has to be an object.di installed somewhere in the system (as well 
as the other standard library header files). It could be in a zip or 
some other binary format though (hopefully not).


> OTOH, gdc seems to be configurated in a really outdated manner. The
> console displays:
>
> --------  Build Commands:  --------
> -v2
> -o"bin/dtest02"
>
> -I"src"
>
> "src/main.d"
>
>
> gdc: error: unrecognized command line option ‘-v2’
>
>
> So, after removing the offending "-v2" from the project's "managed
> response file":
>
> -v2
> -o$/DEEBUILDER.OUTPUTEXE
> $/DEEBUILDER.SRCLIBS.-I
> $/DEEBUILDER.SRCFOLDERS.-I
> $/DEEBUILDER.SRCMODULES
>
> it works well.
>
> For installing gdc I used the standard gdc (Ubuntu 4.8.1-5ubuntu1) 4.8.1
> package. It installs gdc v2.


The build file stuff is unrelated to the library locations detection. 
But yeah, seems the -v2 switch is outdated now, I'll remove it from 
default response file.

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d-ide mailing list