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) |