Moin moin Why? Is there a reason you would prefer -O2? [ Don't take this as me saying no to doing it, just curious about the reasons].
mfg Tobias On Thu, 21 Feb 2019 at 13:19, Alexey Dokuchaev <da...@nsu.ru> wrote: > Hi there, > > I was building some software on Fedora Linux with CMake and noticed > that it was using -O2 optimization level while on FreeBSD, the same > build was performed with -O3 for some reason. > > I've downloaded source .rpm for their CMake and found that they had > to patch several Modules/{Compiler,Platform}/*.cmake files so they > use -O2 for RELEASE mode. I'm attaching the patch for convenience. > > I'm proposing we do the same in FreeBSD, esp. given that we default > to -O2 elsewhere. > > ./danfe >