diff options
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 38640fd0f..39c91e21b 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -89,6 +89,9 @@ namespace Slang // Preprocessor definitions to use for this translation unit only // (whereas the ones on `CompileOptions` will be shared) Dictionary<String, String> preprocessorDefinitions; + + // Compile flags for this translation unit + SlangCompileFlags compileFlags = 0; }; @@ -132,8 +135,8 @@ namespace Slang // Should we just pass the input to another compiler? PassThroughMode passThrough = PassThroughMode::None; - // Flags supplied through the API - SlangCompileFlags flags = 0; + // Compile flags to be shared by all translation units + SlangCompileFlags compileFlags = 0; }; // This is the representation of a given translation unit |
