You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've spent quite some time trying to understand why, when compiling some C++ code with devtools::load_all(), I would always get the g -O0 flags (among others) at the very end, thus overriding my preferred settings in ~/.R/Makevars or src/Makevars. Eventually I've worked out that these are appended by pkgbuild::compile_dll(), which is called by pkgload::load_all().
I think the current default makes sense, but it would be nice if pkgload::load_all() had a debug flag that gets passed to pkgbuild::compile_dll(), so that the debug options could be disabled easily. Alternatively, load_all() could accept a ... argument and pass that to compile_dll() (this seems to me an inferior solution though).
The text was updated successfully, but these errors were encountered:
mcol
added a commit
to mcol/pkgload
that referenced
this issue
Nov 3, 2024
I've spent quite some time trying to understand why, when compiling some C++ code with
devtools::load_all()
, I would always get theg -O0
flags (among others) at the very end, thus overriding my preferred settings in~/.R/Makevars
orsrc/Makevars
. Eventually I've worked out that these are appended bypkgbuild::compile_dll()
, which is called bypkgload::load_all()
.I think the current default makes sense, but it would be nice if
pkgload::load_all()
had adebug
flag that gets passed topkgbuild::compile_dll()
, so that the debug options could be disabled easily. Alternatively,load_all()
could accept a...
argument and pass that tocompile_dll()
(this seems to me an inferior solution though).The text was updated successfully, but these errors were encountered: