diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-08-19 16:26:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-19 16:26:41 -0400 |
| commit | 3284144312ff6b86ec6f9dd665ff216c7cd4c737 (patch) | |
| tree | b6e8fc3bb63a1acc23f9ef09445c796d0b35c1b8 /source | |
| parent | f390351fcc258826cb4f8cb81d85db6982498ec6 (diff) | |
Testing using a 'naked' ISlangFileSystemExt option. (#1026)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-options.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index be88e9d8c..c07ace929 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -786,8 +786,14 @@ struct OptionsParser } else if (name == "load-file") { + // OSFileSystem just implements loadFile interface, so will be wrapped with CacheFileSystem internally spSetFileSystem(compileRequest, OSFileSystem::getSingleton()); } + else if (name == "os") + { + // OSFileSystemExt implements the ISlangFileSystemExt interface - and will be used directly + spSetFileSystem(compileRequest, OSFileSystemExt::getSingleton()); + } else { sink->diagnose(SourceLoc(), Diagnostics::unknownFileSystemOption, name); |
