summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-01-25 13:30:41 -0500
committerGitHub <noreply@github.com>2019-01-25 13:30:41 -0500
commit027e4518ad52b39e4600fa1f94dcae6ce370519f (patch)
tree29fdf67012ffe152ddf8a270026a3d2d26fa9663 /source
parent3048d5da46112a2c6c312922ed3f024e14b8a79f (diff)
If dxil fails to load, do not report it's missing as an error to the sink. It's missing will be detected later in processing and output as a warning. (#799)
Diffstat (limited to 'source')
-rw-r--r--source/slang/check.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 10714ca3a..42bf396fa 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -329,7 +329,8 @@ namespace Slang
// Try to preload dxil first, if loading dxc
if (type == SharedLibraryType::Dxc)
{
- getOrLoadSharedLibrary(SharedLibraryType::Dxil, sink);
+ // Pass nullptr as the sink, because if it fails we don't want to report as error
+ getOrLoadSharedLibrary(SharedLibraryType::Dxil, nullptr);
}
const char* libName = DefaultSharedLibraryLoader::getSharedLibraryNameFromType(type);