Commit graph

5 commits

Author SHA1 Message Date
Luís Ferreira
cf63dd8e5a
fix(dub): Make config.d executable to incremental compilation (#13712)
Fix issue 22821.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-02-28 14:08:59 +02:00
Jacob Carlborg
ead88f3eb2 Workaround for incorrect working directory for Dub
When DMD is used as a Dub dependency and generates the DMD version as
a pre generate command. Dub will execute this command in the current
working directory, which usually is the root package working directory,
instead of the DMD package directory. This will result in the wrong
version, that is, it will pick up the git tag of the root package
instead of the DMD package.

This looks related: https://github.com/dlang/dub/pull/659.
2019-03-17 15:30:41 +01:00
Sebastian Wilzbach
08394cbae2 Place Dub config binary into generated 2019-02-03 15:48:25 +01:00
Jacob Carlborg
65bd76713c Fix Dub package when cross-compiling
The pre generate commands were using the native platform instead of
target platform.
2019-01-21 12:37:51 +01:00
Jacob Carlborg
71e2660171 Fix building the Dub frontend package on Windows
The Dub package was unconditionally running the `config.sh` shell
script to generate the `VERSION` file. A Bash shell script will not
work on Windows. Therefore the `config.sh` script has been ported to
D, which will work on both Windows and Posix.
2018-11-03 12:03:33 +01:00