summaryrefslogtreecommitdiff
path: root/source/core/windows/slang-win-visual-studio-util.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-06-14 12:20:12 -0400
committerGitHub <noreply@github.com>2019-06-14 12:20:12 -0400
commit8c56d83506ef92b15b15bdb5969008dd69c8d2a6 (patch)
treeb58218a85c108b49c2ce74f77e1f3de8c668ef21 /source/core/windows/slang-win-visual-studio-util.h
parent7461e95210e7420d0ddf681279813f394a6fd0d8 (diff)
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.
Diffstat (limited to 'source/core/windows/slang-win-visual-studio-util.h')
-rw-r--r--source/core/windows/slang-win-visual-studio-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/windows/slang-win-visual-studio-util.h b/source/core/windows/slang-win-visual-studio-util.h
index b7e1c8a85..76e1cc710 100644
--- a/source/core/windows/slang-win-visual-studio-util.h
+++ b/source/core/windows/slang-win-visual-studio-util.h
@@ -33,6 +33,9 @@ struct WinVisualStudioUtil
/// Find and add to the set (if not already there)
static SlangResult find(CPPCompilerSet* set);
+ /// Create the cmdLine to start compiler for specified path
+ static void calcExecuteCompilerArgs(const VersionPath& versionPath, CommandLine& outCmdLine);
+
/// Run visual studio on specified path with the parameters specified on the command line. Output placed in outResult.
static SlangResult executeCompiler(const VersionPath& versionPath, const CommandLine& commandLine, ExecuteResult& outResult);