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
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: ``` 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.
- Loading branch information