Skip to content

Commit

Permalink
fix macos arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Taka152 committed Dec 17, 2024
1 parent 4fdbea6 commit e99ae65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pipelines/stages/jobs/steps/capi-macos-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ steps:
echo "build_config=${{ parameters.build_config }}"
displayName: 'Print Parameters'

- bash: |
rustup toolchain install 1.82.0-x86_64-apple-darwin
rustup default 1.82.0-x86_64-apple-darwin
if ("$(arch)" -eq "arm64") {
rustup target add --toolchain 1.82.0-x86_64-apple-darwin aarch64-apple-darwin
}
else {
rustup target add --toolchain 1.82.0-x86_64-apple-darwin x86_64-apple-darwin
}
displayName: 'Install Rust Toolchain'

- powershell: |
$env:MACOSX_DEPLOYMENT_TARGET = "12.0" # Monterey
cmake --preset macos_$(arch)_$(ep)_$(build_config)
Expand Down

0 comments on commit e99ae65

Please sign in to comment.