Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1256)

Unified Diff: lib/src/options.dart

Issue 1243693002: fix for bin/devc relative path (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/compiler.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/options.dart
diff --git a/lib/src/options.dart b/lib/src/options.dart
index a4e54f75a4f8d4e9c7682f7069928dc3008869bb..5642296befec5b1f5cf1d38987e11f7110d020e0 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -109,15 +109,20 @@ class CompilerOptions {
/// package (if we can infer where that is located).
final String runtimeDir;
+ /// The files to compile.
final List<String> inputs;
+ /// The base directory for [inputs]. Module imports will be generated relative
+ /// to this directory.
+ final String inputBaseDir;
+
CompilerOptions({this.strongOptions: const StrongModeOptions(),
this.sourceOptions: const SourceResolverOptions(),
this.codegenOptions: const CodegenOptions(), this.checkSdk: false,
this.dumpInfo: false, this.dumpInfoFile, this.useColors: true,
this.help: false, this.logLevel: Level.SEVERE, this.serverMode: false,
this.enableHashing: false, this.widget: true, this.host: 'localhost',
- this.port: 8080, this.runtimeDir, this.inputs});
+ this.port: 8080, this.runtimeDir, this.inputs, this.inputBaseDir});
}
/// Parses options from the command-line
« no previous file with comments | « lib/src/compiler.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698