diff --git a/source/dub/compilers/dmd.d b/source/dub/compilers/dmd.d index fd5b73f..70df37e 100644 --- a/source/dub/compilers/dmd.d +++ b/source/dub/compilers/dmd.d @@ -226,7 +226,7 @@ case TargetType.dynamicLibrary: if (platform.platform.canFind("windows")) return settings.targetName ~ ".dll"; - else if (platform.platform.canFind("osx")) + else if (platform.platform.canFind("darwin")) return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: diff --git a/source/dub/compilers/gdc.d b/source/dub/compilers/gdc.d index 71f4257..ea2a596 100644 --- a/source/dub/compilers/gdc.d +++ b/source/dub/compilers/gdc.d @@ -170,7 +170,7 @@ case TargetType.dynamicLibrary: if (platform.platform.canFind("windows")) return settings.targetName ~ ".dll"; - else if (platform.platform.canFind("osx")) + else if (platform.platform.canFind("darwin")) return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: diff --git a/source/dub/compilers/ldc.d b/source/dub/compilers/ldc.d index da0cdff..db39741 100644 --- a/source/dub/compilers/ldc.d +++ b/source/dub/compilers/ldc.d @@ -193,7 +193,7 @@ case TargetType.dynamicLibrary: if (p.canFind("windows")) return settings.targetName ~ ".dll"; - else if (p.canFind("osx")) + else if (p.canFind("darwin")) return "lib" ~ settings.targetName ~ ".dylib"; else return "lib" ~ settings.targetName ~ ".so"; case TargetType.object: diff --git a/source/dub/platform.d b/source/dub/platform.d index 10352d2..d908438 100644 --- a/source/dub/platform.d +++ b/source/dub/platform.d @@ -26,7 +26,10 @@ version(Windows) ret ~= "windows"; version(linux) ret ~= "linux"; version(Posix) ret ~= "posix"; - version(OSX) ret ~= "osx"; + version(OSX) ret ~= ["osx", "darwin"]; + version(iOS) ret ~= ["ios", "darwin"]; + version(TVOS) ret ~= ["tvos", "darwin"]; + version(WatchOS) ret ~= ["watchos", "darwin"]; version(FreeBSD) ret ~= "freebsd"; version(OpenBSD) ret ~= "openbsd"; version(NetBSD) ret ~= "netbsd";