diff --git a/source/dub/compilers/dmd.d b/source/dub/compilers/dmd.d index e5864b4..856cdae 100644 --- a/source/dub/compilers/dmd.d +++ b/source/dub/compilers/dmd.d @@ -162,6 +162,8 @@ case TargetType.dynamicLibrary: if (platform.platform.canFind("windows")) return settings.targetName ~ ".dll"; + else if (platform.platform.canFind("osx")) + return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: if (platform.platform.canFind("windows")) diff --git a/source/dub/compilers/gdc.d b/source/dub/compilers/gdc.d index 063c60e..3a79b7e 100644 --- a/source/dub/compilers/gdc.d +++ b/source/dub/compilers/gdc.d @@ -156,6 +156,8 @@ case TargetType.dynamicLibrary: if (platform.platform.canFind("windows")) return settings.targetName ~ ".dll"; + else if (platform.platform.canFind("osx")) + return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: if (platform.platform.canFind("windows")) diff --git a/source/dub/compilers/ldc.d b/source/dub/compilers/ldc.d index 8c80c18..f09e133 100644 --- a/source/dub/compilers/ldc.d +++ b/source/dub/compilers/ldc.d @@ -167,6 +167,8 @@ case TargetType.dynamicLibrary: if (platform.platform.canFind("windows")) return settings.targetName ~ ".dll"; + else if (platform.platform.canFind("osx")) + return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: if (platform.platform.canFind("windows"))