Compiler for gems

How can I define, which c-compiler should be used installing gems with
c-code on windows?
Is there a possibility to select a compiler (mingw, bcc32, cygwin) or
does it always use msvc?

Hans Dampf wrote:

How can I define, which c-compiler should be used installing gems with
c-code on windows?
Is there a possibility to select a compiler (mingw, bcc32, cygwin) or
does it always use msvc?

By default it’s the same compiler that you used to compile Ruby.
Otherwise you could try setting the CC environment variable.

set CC=bcc32

Hans Dampf wrote:

How can I define, which c-compiler should be used installing gems with
c-code on windows?
Is there a possibility to select a compiler (mingw, bcc32, cygwin) or
does it always use msvc?

I know that by default with mingw it’ll use what the first “make” and/or
“gcc” is in the path, so setting the path up right may help.
-=R

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs