Thread Previous • Date Previous • Date Next • Thread Next |
Try to rebuild Kicad makefiles from the scratch. cmake should take in account the gcc version to set the optimization level: -O2 for gcc version until 4.6 -O1 for gcc >= 4.7
Thanks for the suggestion.. however, since I'm compiling Kicad using MAKE_BUILD_TYPE=Debug and by looking at CMakeLists.txt:
if(GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7) set(KICAD_GCC_RELEASE_BUILD_FLAGS "-Wno-narrowing -O1") set(KICAD_GCC_DEBUG_BUILD_FLAGS "-Wno-narrowing") endif()
Then, it seems that -O1 won't be set if you build as Debug which makes sense.
Thanks!
Thread Previous • Date Previous • Date Next • Thread Next |