View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Thu Jan 25, 2007 7:03 pm Post subject: .di files and Bud/Derelict/Schooner interop issue |
|
|
I'm not sure who's to blame here, but if you build Schooner using its built-in 'buildme.d' with the -version=useDerelict flag then, bud will ever after be unable to properly link with Derelict.
The problem is that schooner's buildme leaves .di files in the Derelict tree, and later when bud sees the .di files it decides to ignore the .d files.
That's mostly it, but see this thread for more info.
http://www.dsource.org/forums/viewtopic.php?t=2313
Like I said, I don't know if what schooner's doing with the .di's is wrong (it certainly seems anti-social to litter some other package's directories with any files that package didn't ask to have there), or if bud's behavior when it sees .di's is bad (seems reasonable to assume .di means user plans to link with a lib, but maybe that's assuming too much.) But either way something should change here. Building lib A should not cause future builds that use lib B to fail. |
|
Back to top |
|
|
Bradley Smith
Joined: 20 Jun 2006 Posts: 60
|
Posted: Sat Jan 27, 2007 1:04 am Post subject: |
|
|
I think I know what was going wrong. The GLD buildme was using the -H option to generate .di files for GLD, but was also using including the source path for Derelict (for example -I../../derelict/DerelictGL). This causes bud to find the Derelict source files and include them in the compile. They are not needed for compiling, just for parsing; however, including them caused the .di files to be created.
Since I needed to support building GLD with either DMD or GDC, I removed the use of bud. I had too much difficulty figuring out how to configure bud for both DMD and GDC on both Linux and Windows. Now the .di files are only created for the GLD sources.
Sorry for the trouble.
Thanks,
Bradley |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|