Skip to content

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

Closed
thii wants to merge 1 commit intobazelbuild:masterfrom
thii:patch-grpc-to-fix-cares-selecting-the-wrong-source-when-building-for
Closed

Patch grpc to fix cares selecting the wrong source when building for darwin_arm64 cpu.#12594
thii wants to merge 1 commit intobazelbuild:masterfrom
thii:patch-grpc-to-fix-cares-selecting-the-wrong-source-when-building-for

Conversation

@thii
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 <[email protected]>
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 <[email protected]>
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