By default, it is "-g -O2" if you don't change before compiling R.
I have asked once and R core team said there will be problems using "-O3" for some packages. Best wishes, KK On Tue, Aug 25, 2015 at 7:47 PM, Dirk Eddelbuettel <e...@debian.org> wrote: > > 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 | e...@debian.org > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- Qiang Kou q...@umail.iu.edu School of Informatics and Computing, Indiana University
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel