[darcs-users] darcs patch: Remove unused ghc -threaded flag in libr... (and 1 more)

Trent W. Buck trentbuck at gmail.com
Fri Jan 23 02:07:44 UTC 2009


Eric Kow <kowey at darcs.net> writes:

> On Thu, Jan 22, 2009 at 02:11:50 +0000, Duncan Coutts wrote:
>> Thu Jan 22 02:10:38 GMT 2009  Duncan Coutts <duncan at haskell.org>
>>   * Remove unused ghc -threaded flag in library section
>>   The -threaded flag applies only to linking programs.
>>   Despte this, ghc regects the combinaton of using the -threaded
>>   and profiling flags, even for building a library. New Cabal
>>   versions will ignore the -threaded flag when building programs
>>   but not for libs because that combination is senseless. So there
>>   is a positive benefit to dropping it from the darcs library as
>>   it will let people build a profiling darcs with ghc-6.8 without
>>   having to modify the .cabal file to drop the -threaded flag.
>> 
>> Thu Jan 22 02:10:52 GMT 2009  Duncan Coutts <duncan at haskell.org>
>>   * Remove duplication in fields in the .cabal file
>>   Looks like it was a copy and paste error.
>
> Applied, thanks! (glad the cabal file is getting a bit of TLC, since
> indeed the darcs library bits were done by just blindly copy and pasting
> and since in principle, we should be starting to use the cabal build
> method by default by the 2.3 release this July)

Currently, it seems like all the .hs files are compiled twice -- once
for libHSDarcs and once for the darcs(1) binary.

How much effort is involved in having Cabal build libHSDarcs, compiling
all (or most of) the .hs files, then just having a "stub" darcs.hs that
links against libHSDarcs?



More information about the darcs-users mailing list