08-31-2022, 05:26 PM
(08-31-2022, 05:01 PM)Coolman Wrote: there is a bug. in the compilelog.txt file, I find the two options -O3 and -O2 while I checked Compile programm with C++ optimization flag and specified -O3...
g++ -O3 -O2 -w -std=gnu++11 -DFREEGLUT_STATIC...
That's the intended behavior. The "Compile Program with C++ Optimization flag" checkbox basically is just asking whether you want to compile with "-O2" or not, that's all it does. It's really there for those that aren't comfortable with gcc flags, and also as a suggested optimization level that we could potentially change in the future.
If you are specifying a different optimization flag in the field for custom flags then you should leave the optimization checkbox unchecked, that leaves you free to use any settings you want