diff --git a/source/dub/compilers/ldc.d b/source/dub/compilers/ldc.d index 3ed4a87f6..45b51ddc3 100644 --- a/source/dub/compilers/ldc.d +++ b/source/dub/compilers/ldc.d @@ -152,9 +152,11 @@ class LdcCompiler : Compiler { case TargetType.executable: break; case TargetType.library: case TargetType.staticLibrary: - assert(false, "No LDC static libraries supported"); + settings.addDFlags("-lib"); + break; case TargetType.dynamicLibrary: - assert(false, "No LDC dynamic libraries supported"); + settings.addDFlags("-shared"); + break; } auto tpath = Path(settings.targetPath) ~ getTargetFileName(settings, platform);