From 1fe24d3a74a9cd51c4a025cd0e78642f3e29df79 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 14 Jun 2019 18:05:12 -0400 Subject: Runtime Shared Library compilation and testing (#985) * Removed the need for VisualStudio specific CPPCompiler Improved the version parsing for gcc/clang Removed need for slang-unix-cpp-compiler-util.cpp/.h Remove binary before compiling in the compile c tests * Moved VisualStudio calcArgs into CPPCompilerUtil - as code is not windows specific. * Set up compile time version for gcc and clang * Fix compilation on OSX - use remove instead of unlink for file deletion. * On OSX - clang uses different string format. * Removed /bin/sh invoking as not required for OSX. * First pass working testing with shared libraries. --- source/core/slang-platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/core/slang-platform.h') diff --git a/source/core/slang-platform.h b/source/core/slang-platform.h index e33c5599d..31552e42b 100644 --- a/source/core/slang-platform.h +++ b/source/core/slang-platform.h @@ -42,6 +42,9 @@ namespace Slang /// The input name should be unadorned with any 'lib' prefix or extension static void appendPlatformFileName(const UnownedStringSlice& name, StringBuilder& dst); + /// Calculate the shared library + static String calcPlatformPath(const UnownedStringSlice& path); + private: /// Not constructible! SharedLibrary(); -- cgit v1.2.3