diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-07-25 18:22:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-25 18:22:12 -0700 |
| commit | 155693a61011fa082433b9329570c375310db5bd (patch) | |
| tree | 7ca17a6655621a11eaa4806e0d9e11b011803dc5 /source/slang/compiler.h | |
| parent | 29fb1d781a763a8ca3369d03a75dbe1976571368 (diff) | |
| parent | 941b834f3ba15eba9bfa80eb370077ec9c845efd (diff) | |
Merge pull request #146 from tfoleyNV/output-path-option
Add a `-o` option to command-line `slangc`
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 09797664f..180fb027a 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -102,6 +102,10 @@ namespace Slang // supposed to be defined in. int translationUnitIndex; + // The output path requested for this entry point. + // (only used when compiling from the command line) + String outputPath; + // The resulting output for the enry point // // TODO: low-level code generation should be a distinct step @@ -221,6 +225,9 @@ namespace Slang // How should `#line` directives be emitted (if at all)? LineDirectiveMode lineDirectiveMode = LineDirectiveMode::Default; + // Are we being driven by the command-line `slangc`, and should act accordingly? + bool isCommandLineCompile = false; + // Output stuff DiagnosticSink mSink; String mDiagnosticOutput; |
