mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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 + "*" +
|
||||
|
||||
Reference in New Issue
Block a user