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

build: explicitly specify the host compilers for cmake #65745

Merged
merged 1 commit into from
May 26, 2021

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented May 26, 2021

When cross-compiling, we specify a CMAKE_{CC,CXX}_COMPILER, but we
don't do the same for the host protobuf build.

We happen to have been encountering compile errors on this part of the
build related to cmake being unable to find an appropriate C/C++
compiler in a non-deterministic way (see #65716). I don't know enough
about cmake to be able to describe why that's happening all of a
sudden, but we can avoid the confusion by directly specifying the
compilers ourselves.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

When cross-compiling, we specify a `CMAKE_{CC,CXX}_COMPILER`, but we
don't do the same for the host `protobuf` build.

We happen to have been encountering compile errors on this part of the
build related to `cmake` being unable to find an appropriate C/C++
compiler in a non-deterministic way (see cockroachdb#65716). I don't know enough
about `cmake` to be able to describe why that's happening all of a
sudden, but we can avoid the confusion by directly specifying the
compilers ourselves.

Release note: None
Copy link
Member

@rail rail left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rickystewart)

@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig
Copy link
Contributor

craig bot commented May 26, 2021

Build succeeded:

@craig craig bot merged commit 83a204d into cockroachdb:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants