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

Unified Diff: test/codegen_test.dart

Issue 1013363002: locating runtime files automatically (fixes #96) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « pubspec.yaml ('k') | test/dependency_graph_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_test.dart
diff --git a/test/codegen_test.dart b/test/codegen_test.dart
index dbe68ca7d783ff8a668fec14e9cc937f26f26ea1..4dc89d76799622ff8631def5d9aeae4f5913e6eb 100644
--- a/test/codegen_test.dart
+++ b/test/codegen_test.dart
@@ -58,6 +58,8 @@ main(arguments) {
compile(String entryPoint, String sdkPath,
{bool checkSdk: false, bool serverMode: false}) {
+ var runtimeDir = path.join(
+ path.dirname(path.dirname(Platform.script.path)), 'lib', 'runtime');
var options = new CompilerOptions(
outputDir: serverMode ? path.join(actualDir, 'server_mode') : actualDir,
useColors: false,
@@ -69,6 +71,7 @@ main(arguments) {
checkSdk: checkSdk,
entryPointFile: entryPoint,
dartSdkPath: sdkPath,
+ runtimeDir: runtimeDir,
serverMode: serverMode);
return new Compiler(options).run();
}
« no previous file with comments | « pubspec.yaml ('k') | test/dependency_graph_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698