Am 30.07.2014 21:05, schrieb Stefan Koch:

Hello, I am working on SDC and wanted to use dub to build it. So far it went smoothly, but when I want to link the final executable it get a linker-error because I need to link in the llvm-libs. These libs are determent by runnig llvm-config --libs. How can I use dub to link them ?

Right now I think the only solution would be to manually add the output
of llvm-config to the "libs" field of dub.json. It could almost work
with "preBuildCommands" and an environment variable, but there is
currently no way to break up an environment variable into individual
pieces. But generally shouldn't SDC automatically pass those libs to the
linker if they are required for linking?