diff options
Diffstat (limited to 'tools/render-test/options.cpp')
| -rw-r--r-- | tools/render-test/options.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index a9e51b8e0..1cf0ffbe8 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -156,6 +156,19 @@ SlangResult parseOptions(int argc, const char*const* argv, Slang::WriterHelper s { gOptions.onlyStartup = true; } + else if (strcmp(arg, "-compile-arg") == 0) + { + if (argCursor == argEnd) + { + stdError.print("expected argument for '%s' option\n", arg); + return SLANG_FAIL; + } + + CommandLine::Arg arg; + arg.type = CommandLine::ArgType::Escaped; + arg.value = *argCursor++; + gOptions.compileArgs.add(arg); + } else if (strcmp(arg, "-adapter") == 0) { if (argCursor == argEnd) |
