Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch grpc to fix cares selecting the wrong source when building for darwin_arm64 cpu. #12594

Conversation

thii
Copy link
Member

@thii thii commented Dec 1, 2020

This should use constraints instead of cpu flags, but that should be
fixed on the grpc repository. I just added new config_settings
here to keep the patch size small.

This should allow building a Bazel binary for Apple Silicon hardware
from an Intel Mac with:

USE_BAZEL_VERSION=last_green bazel build -c opt --cpu=darwin_arm64 //src:bazel

(This needs last green Bazel because we need recent changes to
@bazel_tools which needs a Bazel release.)

darwin_arm64 cpu.

This should use constraints instead of cpu flags, but that should be
fixed on the grpc repository. I just added new `config_setting`s
here to keep the patch size small.

This should allow building a Bazel binary for Apple Silicon hardware
from an Intel Mac with:

```
USE_BAZEL_VERSION=last_green bazel build -c opt --cpu=darwin_arm64 //src:bazel
```

(This needs last green Bazel because we need recent changes to
`@bazel_tools` which needs a Bazel release.)
@thii
Copy link
Member Author

thii commented Dec 1, 2020

(The bazel command above is bazelisk)

@thii thii marked this pull request as ready for review December 1, 2020 16:36
Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth submitting upstream too.

@thii
Copy link
Member Author

thii commented Dec 2, 2020

Thanks, submitted it: grpc/grpc#24872.

@jin jin added area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website labels Dec 4, 2020
@bazel-io bazel-io closed this in 1782f0a Dec 7, 2020
@thii thii deleted the patch-grpc-to-fix-cares-selecting-the-wrong-source-when-building-for branch December 7, 2020 19:37
philwo pushed a commit that referenced this pull request Mar 15, 2021
…darwin_arm64 cpu.

This should use constraints instead of cpu flags, but that should be
fixed on the grpc repository. I just added new `config_setting`s
here to keep the patch size small.

This should allow building a Bazel binary for Apple Silicon hardware
from an Intel Mac with:

```
USE_BAZEL_VERSION=last_green bazel build -c opt --cpu=darwin_arm64 //src:bazel
```

(This needs last green Bazel because we need recent changes to
`@bazel_tools` which needs a Bazel release.)

Closes #12594.

Signed-off-by: Philipp Wollermann <philwo@google.com>
philwo pushed a commit that referenced this pull request Mar 15, 2021
…darwin_arm64 cpu.

This should use constraints instead of cpu flags, but that should be
fixed on the grpc repository. I just added new `config_setting`s
here to keep the patch size small.

This should allow building a Bazel binary for Apple Silicon hardware
from an Intel Mac with:

```
USE_BAZEL_VERSION=last_green bazel build -c opt --cpu=darwin_arm64 //src:bazel
```

(This needs last green Bazel because we need recent changes to
`@bazel_tools` which needs a Bazel release.)

Closes #12594.

Signed-off-by: Philipp Wollermann <philwo@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling cla: yes team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants