Open AndrejMitrovic opened 5 years ago
Some of the tests might not be enabled though. Manu mostly wanted to get things up and running for Windows which is what he uses. See e.g. https://github.com/dlang/druntime/pull/2722
@omerfirmak : This was the original plan. However, as I mentioned, cross compilation is an issue. It is quite likely that LDC uses the clang++
runtime by default (instead of G++'s), in which case this would still be possible and save you some time.
However, you'd have to find a way to make things like std::vector
serializable (Vibe.d, serializer) in a non-intrusive way. Currently we do this via the range interface: https://github.com/bosagora/agora/blob/c1d67bf97c663e2b4e6c2db118f693aef034283e/source/scpd/Cpp.d#L260-L279
This first needs a way to emit CppRuntime_Clang
on Linux, which is not possible ATM.
Sadly druntime
std::vector
only supports Windows runtime.
Once our minimum supported version becomes v2.088 (including LDC), we can leverage the DRuntime bindings for vector/string classes: https://dlang.org/changelog/2.088.0.html#std_vector
This shouldn't be done yet as we are still using older versions of DMD (and LDC).