WeakRef updated to better support Tango -- and a question
e-t172
e-t172 at akegroup.org
Thu Mar 27 13:13:39 PDT 2008
Sean Kelly a écrit :
> == Quote from e-t172 (e-t172 at akegroup.org)'s article
>> Sean Kelly a écrit :
>>> Can you produce makefiles that do everything required and also work with the DigitalMars make
> tool?
>>> Even better, can you get the makefiles to optionally generate a debug build as well, and still with
> with
>>> DigitalMars make? It's that requirement that has forced us into using scripts in some instances, for
>>> better or worse.
>> Huh. I thought that nobody used make on Windows (except with MinGW)...
>
> Well, Tango builds on Windows as well as *nix, so we need makefiles in both places.
Yes. I've never built anything on Windows, I thought it used something
different. I was wrong.
>> well, if I understand correctly, that means that, currently, there are
>> different build systems (different scripts) for Windows and for Linux,
>> right ? Therefore, using Makefiles on Linux and the "old" system on
>> Windows would still be an enhancement.
>
> It also creates maintenance issues. Right now, the makefiles are basically identical but
> for changing ".obj" to ".o" and the like. The user portion of Tango doesn't use a makefile
> but that's because it's simply easier to use a script there--the actual build process is much
> simpler than the runtime library.
Before:
- Three completly different shell scripts: build-dmd.bat, build-dmd.sh
and build-gdc.sh
- Three similar (but still different) makefiles: dmd-win32.mak,
dmd-posix.mak, and gdc-posix.mak
After:
- One shell script: build-dmd.bat
- Two different makefiles: dmd-win32.mak and posix.mak (which covers
both DMD and GDC on POSIX)
From my understanding, it does not create maintenance issues. I'd
rather think it removes some of them.
More information about the Digitalmars-d
mailing list