Ticket #83 (new enhancement)

Opened 1 year ago

Last modified 6 months ago

Add library flag for Phobos/Tango

Reported by: DRK Assigned to: Gregor
Priority: major Milestone:
Component: DSSS Version:
Keywords: Cc:

Description

DSSS has a habit of building static import libraries out of libraries, but this causes problems in a mixed Phobos/Tango environment.

DSSS already uses several prefix flags for libraries to specify what they are; it would be excellent to have the use of Phobos/Tango detected (doesn't rebuild have an option for asserting a version identifier?) and added as an additional flag since Phobos and Tango are binary incompatible.

Change History

04/04/08 18:38:39 changed by baxissimo

I agree this would make life easier for people who go back and forth between tango and phobos. Rather than a prefix, I think maybe it would be enough for DSSS to install phobos and tango libs to different lib directories. I.e. dsss/lib/tango and dsss/lib/phobos rather than just dsss/lib.

Perhaps just make the lib dir to install to be part of the rebuild config file.

For an example of why the current situation is a pain, right now, in order to switch from Tango to Phobos or back, I have to do a 'dsss net install derelict' every time. There are other libs too and I always have to recompile them on an as-needed basis. When switching.

Making the root location configurable might also be a good idea. Source libraries that support both tango/phobos *should* be ok installed into a common location, but in practice there is Tangobos, which copies std/* and crc32.di into the root dsss/include/d dir. That messes up phobos. Currently I work around that by moving them out of the way in my "usephobos.bat" script.

For now I think I'm just going to augment my usephobos/usetango scripts to rename the lib directory.