summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check.cpp')
-rw-r--r--source/slang/slang-check.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp
index 3586fcf25..db69a3155 100644
--- a/source/slang/slang-check.cpp
+++ b/source/slang/slang-check.cpp
@@ -121,11 +121,11 @@ namespace Slang
return func;
}
- DownstreamCompilerSet* Session::requireCPPCompilerSet()
+ DownstreamCompilerSet* Session::requireDownstreamCompilerSet()
{
- if (cppCompilerSet == nullptr)
+ if (downstreamCompilerSet == nullptr)
{
- cppCompilerSet = new DownstreamCompilerSet;
+ downstreamCompilerSet = new DownstreamCompilerSet;
typedef DownstreamCompiler::CompilerType CompilerType;
DownstreamCompilerUtil::InitializeSetDesc desc;
@@ -134,10 +134,12 @@ namespace Slang
desc.paths[int(CompilerType::Clang)] = m_downstreamCompilerPaths[int(PassThroughMode::Clang)];
desc.paths[int(CompilerType::VisualStudio)] = m_downstreamCompilerPaths[int(PassThroughMode::VisualStudio)];
- DownstreamCompilerUtil::initializeSet(desc, cppCompilerSet);
+ desc.sharedLibraries[int(CompilerType::NVRTC)] = getOrLoadSharedLibrary(SharedLibraryType::NVRTC, nullptr);
+
+ DownstreamCompilerUtil::initializeSet(desc, downstreamCompilerSet);
}
- SLANG_ASSERT(cppCompilerSet);
- return cppCompilerSet;
+ SLANG_ASSERT(downstreamCompilerSet);
+ return downstreamCompilerSet;
}
TypeCheckingCache* Session::getTypeCheckingCache()