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

Unified Diff: pkg/front_end/lib/compiler_options.dart

Issue 2660553003: Extend front_end API to accept patch files (Closed)
Patch Set: cl comment Created 3 years, 11 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 | « no previous file | pkg/front_end/lib/kernel_generator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/compiler_options.dart
diff --git a/pkg/front_end/lib/compiler_options.dart b/pkg/front_end/lib/compiler_options.dart
index 731344c03dcddfc9e64a45088f062813dbcf9b95..5c0cb112dec8270ed7f852880bdf794c4e0cbbc1 100644
--- a/pkg/front_end/lib/compiler_options.dart
+++ b/pkg/front_end/lib/compiler_options.dart
@@ -85,14 +85,6 @@ class CompilerOptions {
/// generated files.
List<Uri> multiRoots = [];
- /// Sets the platform bit, which determines which patch files should be
- /// applied to the SDK.
- ///
- /// The value should be a power of two, and should match the `PLATFORM` bit
- /// flags in sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart. If
- /// zero, no patch files will be applied.
- int platformBit;
-
/// The declared variables for use by configurable imports and constant
/// evaluation.
Map<String, String> declaredVariables;
@@ -122,4 +114,17 @@ class CompilerOptions {
/// Whether to intepret Dart sources in strong-mode.
bool strongMode = true;
+
+ // All options below are target-specific options.
+ //
+ // TODO(sigmund): revisit the right layout for these options. We might want to
+ // split them out into a separate bag of options or provide factories for
+ // common combinations of these options.
+
+ /// Patch files to apply on the core libraries for a specific target platform.
+ ///
+ /// Keys on this map are expected to be `dart:*` URIs. The values can be
+ /// either absolute or relative URIs. Absolute URIs are read directly, while
+ /// relative URIs are resolved from the [sdkRoot].
+ Map<Uri, List<Uri>> targetPatches = {};
}
« no previous file with comments | « no previous file | pkg/front_end/lib/kernel_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698