https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #11 from krzysio.kurek at wp dot pl --- Done, cmake will now default to Release config with altered compiler flags that include -flto.