[R-pkg-devel] Changing optimization level when building package?

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Jul 5 16:11:52 CEST 2022


On Tue, 5 Jul 2022 09:35:05 -0400
Duncan Murdoch <murdoch.duncan using gmail.com> wrote:

> I see the -O0 option that I added, but afterwards -O2 coming from 
> somewhere in R.

It seems to come from the CXXFLAGS macro defined in /etc/R/Makeconf.
It's the last to be added to ALL_CXXFLAGS, so you probably have to
overwrite it in ~/.R/Makevars.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list