On Thu, 06 Feb 2014 16:36:18 GMT, Sönke Ludwig wrote:
On Thu, 06 Feb 2014 16:26:38 GMT, John Colvin wrote:
On Thu, 06 Feb 2014 15:53:34 GMT, Sönke Ludwig wrote:
(...)
Okay, the direct cause is fixed now by fbf3998, but there is another error in the zeromq package description - an
"importPath": ["."]
field needs to be added or the compilation will fail without--combined
. Maybe the easiest thing is to add that to the existing pull request.Is this right:
https://github.com/D-Programming-Deimos/ZeroMQ/pull/11I'm not sure I fully understand the difference between sourcePaths and importPaths
Looks good.
"sourcePaths"
are searched recursively for D files that are passed to the compiler and"importPaths"
are paths that will be specified as-Ipath
to the compiler. Most of the time they will be the same, but for the particular structure used here, they differ (if"importPaths": ["deimos"]
were set, one would have to writeimport zmq.zmq;
instead ofimport deimos.zmq.zmq;
).
so sourcePaths is used for building the package itself, but importPaths is used when building depedent packages, as their import paths?
Hence --combined would mean that when compiling the dependent package, all of the depended-on packages sourcePath files are dumped to dmd, rendering importPaths irrelevant as dmd has everything it needs.