ffi / ffi-compiler

Apache License 2.0
32 stars 10 forks source link

Evaluate CC and CXX instead of hardcoded values #1

Closed luislavena closed 11 years ago

luislavena commented 11 years ago

Hardcoded values for both CC and CXX options do not work across platforms or compilers selected by default on your environment.

For example, under MinGW with GCC, CC and CXX are 'gcc' and 'g++' respectively.

But if using a different version of compiler (like llvm-gcc) it will fail.

Instead, allow user to override CC and CXX environment variables, falling back to Ruby's information about the compiler (through RbConfig) and then use the defaults.