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.
This commit is contained in:
Erik Eckstein
2024-08-05 09:26:29 +02:00
parent 739c7192ae
commit 2960f472a7

View File

@@ -275,7 +275,8 @@ def test_performance(
def report_code_size(opt_level, old_dir, new_dir, architecture, platform, output_file):
if opt_level == "swiftlibs":
files = glob.glob(os.path.join(old_dir, "lib", "swift", platform, "*.dylib"))
p = os.path.join(old_dir, "lib", "swift", platform, architecture, "*.dylib")
files = glob.glob(p)
else:
files = glob.glob(
os.path.join(old_dir, opt_level + "-" + architecture + "*" +