diff options
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index c31006058..6705f836b 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -652,6 +652,7 @@ struct OptionsParser " -save-stdlib <filename>: Save the StdLib modules to an archive file.\n" " -save-stdlib-bin-source <filename>: Same as -save-stdlib but output\n" " the data as a C array.\n" + " -track-liveness: Enable liveness tracking. Places SLANG_LIVE_START, and SLANG_LIVE_END in output source to indicate value liveness.\n" "\n" "Deprecated options (allowed but ignored; may be removed in future):\n" "\n" @@ -1000,6 +1001,10 @@ struct OptionsParser { requestImpl->disableDynamicDispatch = true; } + else if (argValue == "-track-liveness") + { + requestImpl->setTrackLiveness(true); + } else if (argValue == "-verbose-paths") { requestImpl->getSink()->setFlag(DiagnosticSink::Flag::VerbosePath); |
