diff options
Diffstat (limited to 'source/core/slang-test-tool-util.cpp')
| -rw-r--r-- | source/core/slang-test-tool-util.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/core/slang-test-tool-util.cpp b/source/core/slang-test-tool-util.cpp index f06095ada..68673a29f 100644 --- a/source/core/slang-test-tool-util.cpp +++ b/source/core/slang-test-tool-util.cpp @@ -37,6 +37,19 @@ namespace Slang } } +/* static */bool TestToolUtil::hasDeferredStdLib(Index argc, const char*const* argv) +{ + for (Index i = 0; i < argc; ++i) + { + UnownedStringSlice option(argv[i]); + if (option == "-load-stdlib" || option == "-compile-stdlib") + { + return true; + } + } + return false; +} + /* static */SlangResult TestToolUtil::getIncludePath(const String& parentPath, const char* path, String& outIncludePath) { String includePath; |
