the documented unittests (which don't change much), and putting them
last makes the push/test/debug cycle much longer for stuff like a
missing space on an if statement.
The following druntime commit:
ddf4bcc6e3
removed the need for that, by preventing phobos from instantiating
template nested unittest blocks (from core.time).
We don't want to compile -betterC test files with -unittest because this
will also compile the unit tests of imported files, and those unit tests
were not written in -betterC in mind.
PR https://github.com/dlang/tools/pull/386 allows us to not compile with
-unittest such files and this commit makes this change.
Also enable command output for the last 2 lines of the %.betterc rule is
it's quite helpful in order to see what's going on.
otherwise it is problematic to link the shared
library.
Before this patch to distribute phobos it was
necessary to manually create the symlink
(e.g. 482840bf5b/linux/dmd_phobos.sh (L169)),
this was a really uncomfortable and confusing solution
for external package maintainers.
This symlink was actually already created in the
phobos build phase but for some reason unknown to
me was not copied into the installation target.
I also noticed that the libphobos2.so symlink is
already created, so I simply removed the redundant
symlink creation with a simple copy from generated/$(OS)/$(BUILD)/$(MODEL)
Signed-off-by: Ernesto Castellotti <erny.castell@gmail.com>
Adds possibility to specify absolute path to libcurl.
The TZDatabaseDir version option already does the same for the tzdata directory.
This commit enables the same fix for the path to libcurl. It's needed for Operating systems like NixOS without a search path for dynamic libs.
See https://issues.dlang.org/show_bug.cgi?id=15391 for more information.
Additionally I removed the Makefile part of the TZDatabaseDir solution
because the necessary compiler arguments can be easily given via DFLAGS, which is also compiler independent and doesn't use the /tmp dir which leads to problems on NixOS.