Skip to content

Allow CXX environment variable to override g++ for musl build #500

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

ramosbugs
Copy link
Contributor

The musl-gcc cross compiler doesn't come with a corresponding
musl-g++, so #195 hard-coded the C++ compiler to g++ when
building for musl. However, this results in building native binaries using
the native compiler, rather than an available musl toolchain (e.g.,
x86_64-linux-musl-g++).

This PR modifies the build script to allow the CXX environment
variable to override g++, even when building for musl.

cc: @csssuf @Hoverbear from #195

@BusyJay BusyJay requested a review from hunterlxt November 30, 2020 05:59
@BusyJay BusyJay merged commit 8dd16b4 into tikv:master Dec 7, 2020
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.

3 participants