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

2022-07-07 Thread Tomas Kalibera
On 7/5/22 16:11, Ivan Krylov wrote: On Tue, 5 Jul 2022 09:35:05 -0400 Duncan Murdoch 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 yo

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

2022-07-07 Thread Duncan Murdoch
On 07/07/2022 3:41 a.m., Tomas Kalibera wrote: On 7/5/22 16:11, Ivan Krylov wrote: On Tue, 5 Jul 2022 09:35:05 -0400 Duncan Murdoch 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. I