Skip to content

Commit

Permalink
Merge pull request #296 from dmakarov/master
Browse files Browse the repository at this point in the history
Enable library targets for LDC compiler.
  • Loading branch information
s-ludwig committed Apr 3, 2014
2 parents 4e9c06d + 3988253 commit da74740
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/dub/compilers/ldc.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da74740

Please sign in to comment.