I am using testing codes written in RCpp on both Windows 7 and Linux (Ubuntu Trusty 14.04) and I noticed that sourceCpp uses g++ options such as -O2. I would like to change it to -O3 (more optimizations) and also try out Intel optimizations such as -mtune=corei7-avx and/or -march=corei7-avx to see if there is any improvements in speed.
How can I change the default options of sourceCpp to allow this?