summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-12-10 10:02:19 -0500
committerGitHub <noreply@github.com>2019-12-10 10:02:19 -0500
commit79ec0cfdb5f3461c763e0bf712cf42eb87fccb90 (patch)
treecf0c3c0b6e7f10d3a29930cd3aeef586298d4234 /source/slang/slang-check.cpp
parent2e52217cb870b4101c1639fed78224f89bf119b3 (diff)
DownstreamCompiler abstraction (#1149)
* CPPCompiler -> DownstreamCompiler * Added DownstreamCompileResult to start abstraction such that we don't need files. * * Split out slang-blob.cpp * Made CompileResult hold a DownstreamCompileResult - for access to binary or ISlangSharedLibrary * Keep temporary files in scope. * Add a hash to the hex dump stream. * Move all file tracking into DownstreamCompiler.
Diffstat (limited to 'source/slang/slang-check.cpp')
-rw-r--r--source/slang/slang-check.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp
index 704d37d01..3586fcf25 100644
--- a/source/slang/slang-check.cpp
+++ b/source/slang/slang-check.cpp
@@ -121,20 +121,20 @@ namespace Slang
return func;
}
- CPPCompilerSet* Session::requireCPPCompilerSet()
+ DownstreamCompilerSet* Session::requireCPPCompilerSet()
{
if (cppCompilerSet == nullptr)
{
- cppCompilerSet = new CPPCompilerSet;
+ cppCompilerSet = new DownstreamCompilerSet;
- typedef CPPCompiler::CompilerType CompilerType;
- CPPCompilerUtil::InitializeSetDesc desc;
+ typedef DownstreamCompiler::CompilerType CompilerType;
+ DownstreamCompilerUtil::InitializeSetDesc desc;
desc.paths[int(CompilerType::GCC)] = m_downstreamCompilerPaths[int(PassThroughMode::Gcc)];
desc.paths[int(CompilerType::Clang)] = m_downstreamCompilerPaths[int(PassThroughMode::Clang)];
desc.paths[int(CompilerType::VisualStudio)] = m_downstreamCompilerPaths[int(PassThroughMode::VisualStudio)];
- CPPCompilerUtil::initializeSet(desc, cppCompilerSet);
+ DownstreamCompilerUtil::initializeSet(desc, cppCompilerSet);
}
SLANG_ASSERT(cppCompilerSet);
return cppCompilerSet;