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

Unified Diff: tools/determinism/compare_build_artifacts.py

Issue 2337013002: .o could be COFF object. (Closed)
Patch Set: rebase + changed .o and .obj order Created 4 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
« 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: tools/determinism/compare_build_artifacts.py
diff --git a/tools/determinism/compare_build_artifacts.py b/tools/determinism/compare_build_artifacts.py
index 3c6279819b2db4b74cda9a46d27b5f00029962c8..b792b5ae49edb2c54cae3481b9ccf66a95d266fb 100755
--- a/tools/determinism/compare_build_artifacts.py
+++ b/tools/determinism/compare_build_artifacts.py
@@ -457,7 +457,8 @@ def diff_binary(first_filepath, second_filepath, file_len):
# 6 - 7: machine
# 8 - 11: timestamp.
COFF_HEADER_TO_COMPARE_SIZE = 12
- if (sys.platform == 'win32' and first_filepath.endswith('.obj')
+ if (sys.platform == 'win32'
+ and os.path.splitext(first_filepath)[1] in ('.o', '.obj')
and file_len > COFF_HEADER_TO_COMPARE_SIZE):
rhs_data = rhs.read(COFF_HEADER_TO_COMPARE_SIZE)
lhs_data = lhs.read(COFF_HEADER_TO_COMPARE_SIZE)
« 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