[Rcpp-devel] Optimization flag may be needed in Makevars.win for 4.9.2 toolchain

Dirk Eddelbuettel edd at debian.org
Wed Aug 26 01:47:55 CEST 2015


On 25 August 2015 at 16:02, Kevin Ushey wrote:
| Doesn't CRAN R default to using -O2 flags when compiling C++ source
| files? (I think the default is -O3 for C source files).
| 
| Are you using CRAN R, or a locally built R? You might need to set that
| explicitly yourself when configuring R?

Optimization levels are commonly

 - inherited from values stored in $R_HOME/etc/Makeconf and set at R's
   configure and compile time

 - locally set by the user via $HOME/.R/Makevars

and we are generally advised not to set them in src/Makevars* in our
packages.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list