diff options
| -rw-r--r-- | docs/command-line-slangc-reference.md | 1 | ||||
| -rw-r--r-- | source/slang/slang-options.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md index 650ab867a..95a13a263 100644 --- a/docs/command-line-slangc-reference.md +++ b/docs/command-line-slangc-reference.md @@ -1137,7 +1137,6 @@ Vulkan Shift A capability describes an optional feature that a target may or may not support. When a [-capability](#capability-1) is specified, the compiler may assume that the target supports that capability, and generate code accordingly. * `spirv_1_{ 0`, `1`, `2`, `3`, `4`, `5 }` : minimum supported SPIR - V version -* `Invalid` * `textualTarget` * `hlsl` * `glsl` diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index c3f2ad055..b7f7268d1 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -282,7 +282,8 @@ void initCommandOptions(CommandOptions& options) for (auto name : names) { - if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_")) + if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_") || + name == "Invalid") { continue; } |
