On 2012-02-01 21:02, Robert Clipsham wrote:
On 06/01/2012 21:29, Jacob Carlborg wrote:
I just released a new version of DVM, 0.4.0. The only thing new in this
release in the "compile" command. This allows to compile DMD, druntime
and Phobos from github. Create a folder, clone DMD, druntime and Phobos
in the newly create folder, run "dvm compile folder" to compile
everything. The compiler is placed in the DMD directory.

For installation instructions see: https://bitbucket.org/doob/dvm

Changelog:

Version 0.4.0
New/Change Features
* Added a "compile" command for compiling DMD, druntime and Phobos from
github


When using a compiled dmd is there some way to allow dvm to manage it?

Even if it requires some manual intervention to set up, I'd like to be
able to do:

$ dvm use master

Thanks,


I'm not sure I understand, DVM already handles a compiled DMD. That's the default, what it always have handled.

If you want to have a different name then you can just go ahead and renamed the necessary files and folders. What's needed for DVM to recognize a compiler:

In the ~/.dvm folder:

Folders:
* compilers/dmd-<name>
    |--- bin - standard DMD bin folder
    |--- src - standard DMD src folder
    |--- lib - standard DMD lib folder

Files:
* env/dmd-<name> - take a look at how the other env files look like
* bin/dmd-<name> - take a look at how the other bin files look like (not strictly necessary) * compilers/dmd-<name>/bin/dmd.conf - standard DMD dmd.conf file except the "src" folder is just one level up instead of two:

[Environment]

DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import -L-L%@P%/../lib

For Windows it should be similar, but instead of in ~/.dvm DVM is located somewhere else. I think it's in %APPDATA%\dvm which would be %USERPROFILE%\AppData\Roaming\dvm. Nick knows how it works on Windows better than I do.

--
/Jacob Carlborg

Reply via email to