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

Qiang Kou qkou at umail.iu.edu
Wed Aug 26 03:07:50 CEST 2015


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 <edd at 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 | edd at debian.org
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>



-- 
Qiang Kou
qkou at umail.iu.edu
School of Informatics and Computing, Indiana University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150825/e02400ea/attachment.html>


More information about the Rcpp-devel mailing list