summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.cpp')
-rw-r--r--source/slang/slang-compiler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index 513f9623d..9f10876a0 100644
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -480,6 +480,7 @@ namespace Slang
{
return SourceLanguage::GLSL;
}
+ case PassThroughMode::LLVM:
case PassThroughMode::Clang:
case PassThroughMode::VisualStudio:
case PassThroughMode::Gcc:
@@ -493,6 +494,7 @@ namespace Slang
{
return SourceLanguage::CUDA;
}
+
default: break;
}
SLANG_ASSERT(!"Unknown compiler");
@@ -1791,6 +1793,13 @@ namespace Slang
ComPtr<ISlangBlob> blob;
if (SLANG_FAILED(result.getBlob(blob)))
{
+ if (targetReq->getTarget() == CodeGenTarget::HostCallable)
+ {
+ // Some HostCallable are not directly representable as a 'binary'.
+ // So here, we just ignore if that appears the case, and don't output an unexpected error.
+ return;
+ }
+
SLANG_UNEXPECTED("No blob to emit");
return;
}