mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:56:57 +00:00
Pass SharedOptions to Fasta
Change-Id: Idf85bf49e0ddd47640719eb65044f0b6527f9d9c Reviewed-on: https://dart-review.googlesource.com/c/78525 Commit-Queue: Peter von der Ahé <ahe@google.com> Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
parent
f1d902f4a0
commit
4db2bbe94d
|
@ -1163,7 +1163,7 @@ class FastaCompilerConfiguration extends CompilerConfiguration {
|
|||
List<String> dart2jsOptions,
|
||||
List<String> ddcOptions,
|
||||
List<String> args) {
|
||||
List<String> arguments = <String>[];
|
||||
List<String> arguments = new List<String>.from(sharedOptions);
|
||||
for (String argument in args) {
|
||||
if (argument == "--ignore-unrecognized-flags") continue;
|
||||
arguments.add(argument);
|
||||
|
|
|
@ -1184,6 +1184,10 @@ class StandardTestSuite extends TestSuite {
|
|||
assert(!isMultitest || dartOptions == null);
|
||||
args.add(filePath.toNativePath());
|
||||
if (dartOptions != null) {
|
||||
// TODO(ahe): Because we add [dartOptions] here,
|
||||
// [CompilerConfiguration.computeCompilerArguments] has to discard them
|
||||
// later. Perhaps it would be simpler to pass [dartOptions] to
|
||||
// [CompilerConfiguration.computeRuntimeArguments].
|
||||
args.addAll(dartOptions);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue