summaryrefslogtreecommitdiff
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
commit91d796da81aade1669abb90b72d4013e5480fb2d (patch)
treeaf1fffcf4cc3ad7368fb9ae2c1b23b34890dbca8 /source/slang/compiler.h
parentbb9ca29160f5d95f3860504262693ea650d96be5 (diff)
Make sure that semantic checks always apply to Slang files
That is, even if hte user specified the `-no-checking` option (or the equivalent via API), we still want/need to apply full semantic checks to Slang code, so that cross-compilation will be possible.
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h7
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