Skip to content

Commit 8a8ef94

Browse files
committed
fix the swift library code size comparison in the run_smoke_bench script
In some configurations the script mixed up the build architectures and accidentally reported the code size difference between the x86 and arm.
1 parent 739c719 commit 8a8ef94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/scripts/run_smoke_bench

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def test_performance(
275275

276276
def report_code_size(opt_level, old_dir, new_dir, architecture, platform, output_file):
277277
if opt_level == "swiftlibs":
278-
files = glob.glob(os.path.join(old_dir, "lib", "swift", platform, "*.dylib"))
278+
files = glob.glob(os.path.join(old_dir, "lib", "swift", platform, architecture, "*.dylib"))
279279
else:
280280
files = glob.glob(
281281
os.path.join(old_dir, opt_level + "-" + architecture + "*" +

0 commit comments

Comments
 (0)