Chromium Code Reviews| Index: tools/create_sdk.py |
| =================================================================== |
| --- tools/create_sdk.py (revision 5483) |
| +++ tools/create_sdk.py (working copy) |
| @@ -163,8 +163,16 @@ |
| assert builtin_runtime_sources[0] == 'builtin.dart' |
| copyfile(join(HOME, 'runtime', 'bin', 'builtin.dart'), |
| join(builtin_dest_dir, 'builtin_runtime.dart')) |
| + # |
| + # rename the print function in dart:builtin |
| + # so that it does not conflict with the print function in dart:core |
| + # |
| + ReplaceInFiles([ |
| + join(builtin_dest_dir, 'builtin_runtime.dart') |
| + ], [ |
| + ('void print\(', 'void builtinPrint(') |
| + ]) |
|
devoncarew
2012/03/15 22:06:26
If I understand the chronology correctly, dart:bui
|
| - |
| # |
| # Create and populate lib/io. |
| # |
| @@ -341,6 +349,8 @@ |
| for filename in corelib_runtime_sources: |
| if filename.endswith('.dart'): |
| dest_file.write('#source("runtime/' + filename + '");\n') |
| + # include the missing print function |
| + dest_file.write('void print(String arg) { /* native */ }\n') |
| dest_file.close() |
| # |