From 8c56d83506ef92b15b15bdb5969008dd69c8d2a6 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 14 Jun 2019 12:20:12 -0400 Subject: CPPCompiler improvements (#984) * 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. --- source/core/slang-io.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/core/slang-io.cpp') diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp index a144c5892..83f21d5dd 100644 --- a/source/core/slang-io.cpp +++ b/source/core/slang-io.cpp @@ -42,9 +42,8 @@ namespace Slang } return SLANG_FAIL; #else - // https://linux.die.net/man/2/unlink - - if (unlink(fileName.getBuffer()) == 0) + // https://linux.die.net/man/3/remove + if (::remove(fileName.getBuffer()) == 0) { return SLANG_OK; } -- cgit v1.2.3