← Back to team overview

kicad-developers team mailing list archive

Re: Cut out doesn't seem to work

 

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!


Follow ups

References