Specify C and C++ compiler paths when building Ruby gem

162 Views Asked by At

gem allows specifying build arguments, however I can't find a build argument to override the CC and CXX constants in the Makefile generated by mkmf (the defaults appear to come from RbConfig::CONFIG).

How can I specify which compiler to use when building an extension?

0

There are 0 best solutions below