summaryrefslogtreecommitdiffstats
path: root/source/slang/ir-link.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/ir-link.cpp')
-rw-r--r--source/slang/ir-link.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/ir-link.cpp b/source/slang/ir-link.cpp
index d4f736a08..dc433663a 100644
--- a/source/slang/ir-link.cpp
+++ b/source/slang/ir-link.cpp
@@ -811,6 +811,12 @@ String getTargetName(IRSpecContext* context)
case CodeGenTarget::GLSL:
return "glsl";
+ case CodeGenTarget::CSource:
+ return "c";
+
+ case CodeGenTarget::CPPSource:
+ return "cpp";
+
default:
SLANG_UNEXPECTED("unhandled case");
UNREACHABLE_RETURN("unknown");