Skip to content

Commit

Permalink
Re-disable rosetta for bootstrap on M1 Mac (#19737)
Browse files Browse the repository at this point in the history
This will produce native arm64 binaries by default instead of x64, which
will not be able to link with an arm64 openssl installed by brew.
  • Loading branch information
mspang authored and pull[bot] committed Sep 13, 2023
1 parent 6bd581e commit 9046949
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ EOF
PW_ROOT="$_CHIP_ROOT/third_party/pigweed/repo"
export PW_ROOT

# Do not force use Rosetta in Pigweed because Matter is using host toolchain
if [ -z "$PW_BOOTSTRAP_USE_ROSETTA" ]; then
export PW_BOOTSTRAP_USE_ROSETTA=false
fi

. "$_CHIP_ROOT/third_party/pigweed/repo/pw_env_setup/util.sh"

_chip_bootstrap_banner() {
Expand Down
1 change: 1 addition & 0 deletions scripts/environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"gn_targets": [":python_packages.install"]
},
"required_submodules": ["third_party/pigweed/repo"],
"rosetta": "never",
"gni_file": "build_overrides/pigweed_environment.gni"
}

0 comments on commit 9046949

Please sign in to comment.