Skip to content

Commit

Permalink
Use Host Architecture as Fallback Architecture in JavascriptCore Tests
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=265681
rdar://119040784

Reviewed by Jonathan Bedard and Alexey Proskuryakov.

Allow for running JSC stress tests on macOS hosts that do not have Xcode installed.

* Tools/Scripts/run-javascriptcore-tests:

Canonical link: https://commits.webkit.org/271513@main
  • Loading branch information
chgibb-apple committed Dec 4, 2023
1 parent 591cf10 commit c7b9248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/Scripts/run-javascriptcore-tests
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ if (defined $remoteConfigFile) {
if (defined $archs) {
die "$archs not supported by the provided binary, which supports '$archsInBuild'" if index($archsInBuild, $archs) == -1;
} else {
# Fallback is x86_64, which we replace with the native architecture if the native architecture is in the provided build
$archs = "x86_64";
# Fallback is the architecture of the host machine. Avoid calling lipo which allows this script to work without Xcode being installed.
chomp($archs = `/usr/bin/arch`);
$archs = nativeArchitecture($remotes) if (!isAppleMacWebKit() || index($archsInBuild, nativeArchitecture($remotes)) != -1);
}

Expand Down

0 comments on commit c7b9248

Please sign in to comment.