Re: cmake does not use -O2 for Release builds

2020-10-07 Thread Julian Smith
On Tue, 6 Oct 2020 13:29:56 - (UTC) Stuart Henderson wrote: > On 2020-10-05, Julian Smith wrote: > > It looks like OpenBSD's cmake port patches cmake to remove the use > > of -O2 in Release and RelWithDebInfo builds - > > /usr/ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake has:

Re: cmake does not use -O2 for Release builds

2020-10-06 Thread Stuart Henderson
On 2020-10-05, Julian Smith wrote: > It looks like OpenBSD's cmake port patches cmake to remove the use of > -O2 in Release and RelWithDebInfo builds - > /usr/ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake has: > > - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")

cmake does not use -O2 for Release builds

2020-10-05 Thread Julian Smith
It looks like OpenBSD's cmake port patches cmake to remove the use of -O2 in Release and RelWithDebInfo builds - /usr/ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake has: - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG") - string(APPEND