Hello, I am trying to explicitly build my project with different optimization settings.
I’m trying to add -O3 to CFLAGS, and O3, and -DO3 and everything else I could think of.
The automatic test fails on “Importing Specs” step.
My questions is, where and what do I need to enter so that I have level 3 optimization?
Next, how is optimization done by default? If it’s not explicitly define, is it -O0 for debug builds and -O3 for release builds?
Lastly, if I have “-DCMAKE_BUILD_TYPE=DEBUG ” in the .cmake file, does this mean the build is forced to build it debug, even if I specify to build with release? Because both my release and debug executables are the same exact size.
Thanks,
-
This topic was modified 8 years, 3 months ago by dmitryponv.