On Mon, 14 Jul 2014 10:56:44 GMT, schneider wrote:
Thanks very much Jacob, like this I was already successful, directly invoking DMD, but my question is how can you do that using DUB as it seems to be an incredible handy tool to compile D programs. I was just struggling for a few hours getting DUB to pass the -framework switches on to GCC, I tried any possible combination. So far I was not peeking at the DUB source code, as I was figuring that it should be possible.
Try something like this:
"lflags-osx": ["-framework Carbon"]
Or two separate arguments:
"lflags-osx": ["-framework", "Carbon"]
BTW, in the past I have already been successful using you fork of DMD and build a minimal Cocoa application. I hopefully will be able to contribute to the OSX toolchain for D soon.
Cool :)
I'm pretty sure Dub has a "verbose" flag you can pass to see exactly how it invokes the compiler.
/Jacob Carlborg