Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruby: make it possible to specify compiler for C extension (#19863)
Previously running `gem install google-protobuf --platform ruby` used the default C compiler specified by `mkmf`, which uses `RbConfig::MAKEFILE_CONFIG["CC"]` and `RbConfig::MAKEFILE_CONFIG["CXX"]`. This commit supports using `CC`, `CXX`, and `LD` from the environment: ```shell export CC=my-custom-gcc export CXX=my-custom-g++ gem install google-protobuf --platform ruby ``` Most native gems, such as grpc and nokogiri, allow for this. Closes #19863 COPYBARA_INTEGRATE_REVIEW=#19863 from stanhu:sh-support-custom-gcc 33693f8 PiperOrigin-RevId: 713675592
- Loading branch information