summaryrefslogtreecommitdiffstats
path: root/source/core/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/platform.cpp')
-rw-r--r--source/core/platform.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/core/platform.cpp b/source/core/platform.cpp
index e7575d21e..238fccd08 100644
--- a/source/core/platform.cpp
+++ b/source/core/platform.cpp
@@ -153,10 +153,17 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY);
#if __CYGWIN__
dst.Append(name);
dst.Append(".dll");
-#else
+#elif SLANG_APPLE_FAMILY
+ dst.Append("lib");
+ dst.Append(name);
+ dst.Append(".dylib");
+#elif SLANG_LINUX_FAMILY
dst.Append("lib");
dst.Append(name);
dst.Append(".so");
+#else
+ // Just guess we can do with the name on it's own
+ dst.Append(name);
#endif
}