According to the comments in the rebar port compiler code, you can provide an alternative C compiler by adding something like this to your rebar.config
:
{port_env, [{"CC", "/path/to/gcc.exe"}]}.
You will most likely have to change the CFLAGS
to match the compiler. To compile NIFs and ports the OTP headers and development libraries must be compiled and available.