diff options
Diffstat (limited to 'tools/slang-test/options.cpp')
| -rw-r--r-- | tools/slang-test/options.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/slang-test/options.cpp b/tools/slang-test/options.cpp index 2b9ec6c06..693d1939c 100644 --- a/tools/slang-test/options.cpp +++ b/tools/slang-test/options.cpp @@ -291,5 +291,15 @@ static bool _isSubCommand(const char* arg) return SLANG_FAIL; } + if (optionsOut->binDir.Length() == 0) + { + // If the binDir isn't set try using the path to the executable + String exePath = Path::GetExecutablePath(); + if (exePath.Length()) + { + optionsOut->binDir = Path::GetDirectoryName(exePath); + } + } + return SLANG_OK; } |
