From 3988253484fcd3a76d880e6b644b18c83ddcc1fd Mon Sep 17 00:00:00 2001 From: Dmitri Makarov Date: Thu, 3 Apr 2014 12:10:51 +0200 Subject: [PATCH] Enable library targets for LDC compiler. --- source/dub/compilers/ldc.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);