diff options
| author | Yong He <yonghe@outlook.com> | 2022-08-20 01:03:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-20 01:03:06 -0700 |
| commit | af70651a4843b16dd24e14b5cedffe399ebeb862 (patch) | |
| tree | a6aefd5db94a048114b9a8d7ed3f826533105fab /tools/slang-test/slangc-tool.cpp | |
| parent | 6412c4913b6a063438bb11863f2c154d3ae42dfe (diff) | |
Call `gfx` in slang program. (#2370)
Diffstat (limited to 'tools/slang-test/slangc-tool.cpp')
| -rw-r--r-- | tools/slang-test/slangc-tool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/slang-test/slangc-tool.cpp b/tools/slang-test/slangc-tool.cpp index 25b973421..e538cde09 100644 --- a/tools/slang-test/slangc-tool.cpp +++ b/tools/slang-test/slangc-tool.cpp @@ -3,6 +3,7 @@ #include "../../source/core/slang-exception.h" #include "../../source/core/slang-test-tool-util.h" +#include "../../source/core/slang-io.h" using namespace Slang; @@ -31,6 +32,9 @@ SlangResult SlangCTool::innerMain(StdWriters* stdWriters, slang::IGlobalSession* ComPtr<slang::ICompileRequest> compileRequest; SLANG_RETURN_ON_FAIL(session->createCompileRequest(compileRequest.writeRef())); + auto compilerExecutablePath = Path::getParentDirectory(Path::getExecutablePath()); + compileRequest->addSearchPath(compilerExecutablePath.getBuffer()); + // Do any app specific configuration for (int i = 0; i < SLANG_WRITER_CHANNEL_COUNT_OF; ++i) { |
