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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 10876078: Better splitting of flag string. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 0fed8954da4d5ed6addb1aab934cdc41e6ae1286..bd8d4bdc156efad1097379c35a3557b9bdcc0a50 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -450,7 +450,10 @@ class StandardTestSuite implements TestSuite {
var compilerArguments = new List.from(args);
var additionalFlags =
configuration['additional-compiler-flags'].split(' ');
- compilerArguments.addAll(additionalFlags);
+ for (final flag in additionalFlags) {
+ if (flag.isEmpty()) continue;
+ compilerArguments.add(flag);
+ }
compilerArguments.add('--output-type=dart');
String tempDir = createOutputDirectory(info.filePath, '');
compilerArguments.add('--out=$tempDir/out.dart');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698