How to compile for release mode with -Os -O3
Posted: Wed Feb 05, 2020 9:06 pm
I have not been able to find out how to compile for release mode. When I copy an example and compile the example with make VERBOSE=1 I see that the compiler flags are -Og -ggdb, but I want the flags to be -Os -O3.
I tried "cmake -DCMAKE_BUILD_TYPE=Release" but that added a ton of files and broke the example.
I tried "cmake -DCMAKE_BUILD_TYPE=Release" but that added a ton of files and broke the example.