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

Unified Diff: runtime/tools/gen_library_src_paths.py

Issue 14645025: Resubmit 22380 after fixing the windows build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/lib/libgen_in.cc ('k') | runtime/vm/bootstrap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tools/gen_library_src_paths.py
===================================================================
--- runtime/tools/gen_library_src_paths.py (revision 22382)
+++ runtime/tools/gen_library_src_paths.py (working copy)
@@ -28,14 +28,16 @@
if line.startswith('library '):
main_file_found = True
bootstrap_cc_text = bootstrap_cc_text.replace(
- "{{LIBRARY_SOURCE_MAP}}",
- ' "' + lib_name + '", "' +
- os.path.abspath(string_file) + '", \n')
+ "{{LIBRARY_SOURCE_MAP}}",
+ ' "' + lib_name + '", "' +
+ os.path.abspath(string_file).replace('\\', '\\\\') + '", \n')
inpt.close()
if (main_file_found):
continue
- part_index.append(' "' + os.path.basename(string_file) + '", ')
- part_index.append('"' + os.path.abspath(string_file) + '", \n')
+ part_index.append(' "' +
+ os.path.basename(string_file).replace('\\', '\\\\') + '", ')
+ part_index.append('"' +
+ os.path.abspath(string_file).replace('\\', '\\\\') + '", \n')
bootstrap_cc_text = bootstrap_cc_text.replace("{{PART_SOURCE_MAP}}",
''.join(part_index))
open(output_file, 'w').write(bootstrap_cc_text)
« no previous file with comments | « runtime/lib/libgen_in.cc ('k') | runtime/vm/bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698