The quick turnaround that I had gotten so accustomed to is nearly gone..
So what's the easiest way to use vibe.d as a library?
The quick turnaround that I had gotten so accustomed to is nearly gone..
So what's the easiest way to use vibe.d as a library?
On Thu, 28 Mar 2013 19:01:35 GMT, 11001100 wrote:
The quick turnaround that I had gotten so accustomed to is nearly gone..
So what's the easiest way to use vibe.d as a library?
Do you know what takes so long to compile? The sad thing is that splitting up things into libraries often doesn't really help, because templates and CTFE compilation mostly happens outside of the library anyway.
I would have expected rdmd to work, but the result is a 1 kB vibe.d.lib file for me on Windows: rdmd --build-only -c -lib -version=VibeLibeventDriver -Isource source\vibe\vibe.d
DUB is supposed to be able to compile it as a library, but that is currently untested and will probably not work: dub build --config=library
So the remaining possibility is to manually make a list of all files and pass them to dmd to build a static library:
cd ../source && find -name *.d > ../files.txt && cd ..
dmd -ofvibe.a -lib -Isource -version=VibeLibeventDriver @files.txt
On Sat, 30 Mar 2013 16:58:06 GMT, Sönke Ludwig wrote:
I would have expected rdmd to work, but the result is a 1 kB vibe.d.lib file for me on Windows:
rdmd --build-only -c -lib -version=VibeLibeventDriver -Isource source\vibe\vibe.d
http://d.puremagic.com/issues/show_bug.cgi?id=6535
https://github.com/D-Programming-Language/tools/commit/0ce81aaa86111f57444e9b43f121f09e6bbf0b01