summaryrefslogtreecommitdiffstats
path: root/webkit/build
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/build')
-rwxr-xr-xwebkit/build/rule_gperf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/build/rule_gperf.py b/webkit/build/rule_gperf.py
index 873eff8..ef24b40 100755
--- a/webkit/build/rule_gperf.py
+++ b/webkit/build/rule_gperf.py
@@ -41,13 +41,16 @@ assert input_name in gperf_commands
(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')