summaryrefslogtreecommitdiffstats
path: root/source/slang/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/options.cpp')
-rw-r--r--source/slang/options.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/options.cpp b/source/slang/options.cpp
index a5cdfef44..46e0203cf 100644
--- a/source/slang/options.cpp
+++ b/source/slang/options.cpp
@@ -360,6 +360,9 @@ struct OptionsParser
CASE(".spv", SPIRV);
CASE(".spv.asm", SPIRV_ASM);
+ CASE(".c", C_SOURCE);
+ CASE(".cpp", CPP_SOURCE);
+
#undef CASE
else if (path.endsWith(".slang-module"))
@@ -499,6 +502,8 @@ struct OptionsParser
CASE("dxil", DXIL)
CASE("dxil-assembly", DXIL_ASM)
CASE("dxil-asm", DXIL_ASM)
+ CASE("c", C_SOURCE)
+ CASE("cpp", CPP_SOURCE)
#undef CASE
/* else */