diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-19 11:09:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-19 11:09:23 -0700 |
| commit | 838e8331da24744948539c12d2a8edcd9c594ee5 (patch) | |
| tree | af1fffcf4cc3ad7368fb9ae2c1b23b34890dbca8 /source/slang/compiler.h | |
| parent | bb9ca29160f5d95f3860504262693ea650d96be5 (diff) | |
| parent | 91d796da81aade1669abb90b72d4013e5480fb2d (diff) | |
Merge pull request #30 from tfoleyNV/slang-checking-fix
Make sure that semantic checks always apply to Slang files
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 |
