7

Is there an easy way to figure out the compiler used to compile R? Something like

$ R CMD which_compiler_was_used
GCC

Or from inside of R

> Sys.compiler()
[1] "GCC"

I know R CMD SHLIB somehow does the magic...

3

1 Answer 1

10

Try this:

R CMD config CC

When I try it I get this:

gcc -m64

Note: Issue the R CMD config command without CC to find out about other information that it can provide.

1
  • 1
    Is it also possible to figure out the version of gcc that was used to build R?
    – Chris
    Commented Jun 16, 2021 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.