diff options
author | Bryan Parno <parno@microsoft.com> | 2013-12-13 13:54:40 -0800 |
---|---|---|
committer | Bryan Parno <parno@microsoft.com> | 2013-12-13 13:54:40 -0800 |
commit | bec9ceeba29e8513a41a65be5a8fdba8d68333e3 (patch) | |
tree | 667f7cd13eda61568c598d34e986605b6d10ade9 /Source/Dafny/DafnyMain.cs | |
parent | 87cbe4be0506bd30df76a5640135fe8ccff08cc1 (diff) |
Add a command-line option to disable include directives.
Diffstat (limited to 'Source/Dafny/DafnyMain.cs')
-rw-r--r-- | Source/Dafny/DafnyMain.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Dafny/DafnyMain.cs b/Source/Dafny/DafnyMain.cs index 17532fa9..182567d9 100644 --- a/Source/Dafny/DafnyMain.cs +++ b/Source/Dafny/DafnyMain.cs @@ -38,10 +38,12 @@ namespace Microsoft.Dafny { }
}
- string errString = ParseIncludes(module, builtIns, new Errors());
- if (errString != null) {
- return errString;
- }
+ if (!DafnyOptions.O.DisallowIncludes) {
+ string errString = ParseIncludes(module, builtIns, new Errors());
+ if (errString != null) {
+ return errString;
+ }
+ }
program = new Program(programName, module, builtIns);
|