Skip to content

Commit 2960f47

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 2960f47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmark/scripts/run_smoke_bench

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ 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+
p = os.path.join(old_dir, "lib", "swift", platform, architecture, "*.dylib")
279+
files = glob.glob(p)
279280
else:
280281
files = glob.glob(
281282
os.path.join(old_dir, opt_level + "-" + architecture + "*" +

0 commit comments

Comments
 (0)