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

Unified Diff: build/win/reorder-imports.py

Issue 137643003: Temporary fix for telemetry builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/win/reorder-imports.py
diff --git a/build/win/reorder-imports.py b/build/win/reorder-imports.py
index d320b51e9e7cc6d39445ef06fabd753375839e29..09f62aa67eb47c7c082baa0582de2990ef6ca6d3 100755
--- a/build/win/reorder-imports.py
+++ b/build/win/reorder-imports.py
@@ -6,6 +6,7 @@
import glob
import optparse
import os
+import platform
import shutil
import subprocess
import sys
@@ -18,11 +19,16 @@ def reorder_imports(input_dir, output_dir):
input_image = '--input-image=%s' % (os.path.join(input_dir, 'chrome.exe'))
output_image = '--output-image=%s' % (os.path.join(output_dir, 'chrome.exe'))
- swap_exe = os.path.join(
- __file__,
- '..\\..\\..\\third_party\\syzygy\\binaries\\exe\\swapimport.exe')
- subprocess.call(
- [swap_exe, input_image, output_image, '--overwrite', 'chrome_elf.dll'])
+ # TODO(caitkp): Remove this once swapimport works on x64 builds.
+ if platform.architecture()[0] == '64bit':
scottmg 2014/01/19 22:33:33 I don't thing this will work. It's testing the arc
+ shutil.copy(os.path.join(input_dir, 'chrome.exe'),
+ os.path.join(output_dir, 'chrome.exe'))
+ else:
+ swap_exe = os.path.join(
+ __file__,
+ '..\\..\\..\\third_party\\syzygy\\binaries\\exe\\swapimport.exe')
+ subprocess.call(
+ [swap_exe, input_image, output_image, '--overwrite', 'chrome_elf.dll'])
for fname in glob.iglob(os.path.join(input_dir, 'chrome.exe.*')):
shutil.copy(fname, os.path.join(output_dir, os.path.basename(fname)))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698