On 18 June 2017 at 09:22, Guillaume Chapron wrote:
| Thanks!
| 
| In that file, I see:
| 
| CC = clang
| CFLAGS = -Wall -mtune=core2 -g -O2 $(LTO)
| 
| will having -O0 instead give me all the variables or is there a flag for 
better debugging (I guess -g does it a little already)?

Right, -g is what you need. I used to not alter -O flags for simplicity but
because code _could_ be reorganized for optimization it is not a bad idea to
use -O0 as well.

But the key is -g (just how there is -pg for profiling).

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to