Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread Simon Richter
Hi, On 23.05.2015 20:18, jp charras wrote: Sorry to say that, but what is the interest of this work: Now that is a good question. My initial goal was to basically shave a few percents off in text size and get a bit of extra speed, just by setting a few compiler flags. I'm happy to put this on

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread Bernhard Stegmaier
Hi again, last comment/test: Just dropping in “-flto” in CMakeLists.txt here: set( CMAKE_CXX_FLAGS_DEBUG -g3 -ggdb3 -DDEBUG -Wno-deprecated-declarations ) set( CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} -DNDEBUG -flto ) set( CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread Bernhard Stegmaier
Hi, built your branch on OS X. Good thing is that build did work for me. I just quickly fired up pcbnew and loaded an existing board… seems to work. But, it doesn’t seem to have a real effect on code size (first one is my current working version, second one your branch): bstegmaier$ ls -al

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread Bernhard Stegmaier
Hi again, I guess this is due to LTO not even being used on OS X, if I understand your cmake change correctly: find_program(CMAKE_GCC_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar${_CMAKE_TOOLCHAIN_SUFFIX} HINTS ${_CMAKE_TOOLCHAIN_LOCATION}) find_program(CMAKE_GCC_NM NAMES

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread Simon Richter
Hi, On 23.05.2015 18:48, Bernhard Stegmaier wrote: I guess this is due to LTO not even being used on OS X, if I understand your cmake change correctly: find_program(CMAKE_GCC_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar${_CMAKE_TOOLCHAIN_SUFFIX} HINTS ${_CMAKE_TOOLCHAIN_LOCATION})

Re: [Kicad-developers] hard crash with pcbnew

2015-05-23 Thread Bernhard Stegmaier
Hi, really nice, especially also OpenGL mode is really looking good now on Retina! Thanks, Bernhard On 22 May 2015, at 09:39, Maciej Sumiński maciej.sumin...@cern.ch wrote: Hi Garth, Applied in 5677, thank you for notification. Regards, Orson On 05/22/2015 03:59 AM, Garth Corral

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread jp charras
Le 22/05/2015 16:51, Simon Richter a écrit : Hi, I've submitted a branch for inclusion at https://code.launchpad.net/~sjr/kicad/lto that seeks to use link-time optimization when possible. We've already established that this is broken on MSYS, so I'm going to disable it there, while

Re: [Kicad-developers] [MacOS] compiling with link-time optimization

2015-05-23 Thread jp charras
Le 23/05/2015 19:17, Simon Richter a écrit : Hi, On 23.05.2015 18:48, Bernhard Stegmaier wrote: I guess this is due to LTO not even being used on OS X, if I understand your cmake change correctly: find_program(CMAKE_GCC_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar${_CMAKE_TOOLCHAIN_SUFFIX}