February 01, 2012
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,

-- 
Robert
http://octarineparrot.com/
February 01, 2012
On 01-02-2012 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,
>

+1!

--
- Alex
February 02, 2012
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
February 04, 2012
"Jacob Carlborg" <doob@me.com> wrote in message news:jgde35$2h2t$1@digitalmars.com...
>
> 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.
>

It's in "%APPDATA%\dvm". On my computer, that resolves to "C:\Documents and Settings\Nick Sabalausky\Application Data\dvm", but naturally that's going to vary.

Everything else Jacob said about DVM's structure on Linux also applies to Windows DVM, too. The only differences are the content inside the scripts (and the fact that they're batch instead of linux shell, obviously).

I do like the idea of being able to do stuff like "dvm install ./myDMD mydmd && dvm use mydmd" or "dvm use ./myDMD".


1 2 3
Next ›   Last »