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

Unified Diff: webkit/build/rule_gperf.py

Issue 172032: First cut for a FreeBSD port - much still not working (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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
Index: webkit/build/rule_gperf.py
===================================================================
--- webkit/build/rule_gperf.py (revision 25593)
+++ webkit/build/rule_gperf.py (working copy)
@@ -41,13 +41,16 @@
(input_root, input_ext) = posixpath.splitext(input_name)
output_cpp = posixpath.join(output_dir, input_root + '.cpp')
-command = ['gperf', '--output-file', output_cpp]
+#command = ['gperf', '--output-file', output_cpp]
+command = ['gperf']
command.extend(gperf_commands[input_name])
command.append(input_file)
+ofile = open(output_cpp, 'w')
+
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
-return_code = subprocess.call(command)
+return_code = subprocess.call(command, stdout=ofile.fileno())
assert return_code == 0
output_c = posixpath.join(output_dir, input_root + '.c')

Powered by Google App Engine
This is Rietveld 408576698