Skip to content

Commit b578407

Browse files
committed
Only enable performance testing on Intel machines that run macOS
Apple Silicon machines produce different instruction counts and thus obviously shouldn’t use the Intel baseline.
1 parent 4cfb370 commit b578407

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build-script.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,10 @@ def run_xctests(
465465
env["SWIFTCI_USE_LOCAL_DEPS"] = "1"
466466
env["SWIFT_SYNTAX_PARSER_LIB_SEARCH_PATH"] = \
467467
os.path.join(toolchain, "lib", "swift", "macosx")
468-
env["BASELINE_FILE"] = os.path.join(TESTS_DIR, "PerformanceTest", "ci-baselines.json")
468+
if platform.system() == "Darwin" and platform.machine() == "i386":
469+
# Only perform performance testing on Intel macOS machines because that’s what
470+
# the baselines are written for.
471+
env["BASELINE_FILE"] = os.path.join(TESTS_DIR, "PerformanceTest", "ci-baselines.json")
469472

470473
check_call(swiftpm_call, env=env, verbose=verbose)
471474

0 commit comments

Comments
 (0)