← Back to team overview

kicad-developers team mailing list archive

[PATCH 1/2] Drop unnecessary and possibly harmful optimization setting

 

Using -O3 is default for release builds with gcc/clang anyway, so this
doesn't gain anything, but overwriting the existing flags might remove some
that might be needed.
---
 3d-viewer/CMakeLists.txt | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/3d-viewer/CMakeLists.txt b/3d-viewer/CMakeLists.txt
index 096c437b4..558564e4e 100644
--- a/3d-viewer/CMakeLists.txt
+++ b/3d-viewer/CMakeLists.txt
@@ -1,9 +1,6 @@
 #add_definitions(-DPRINT_STATISTICS_3D_VIEWER)
 add_definitions(-DPCBNEW)
 
-set( CMAKE_C_FLAGS_RELEASE   "-O3" )
-set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
-
 include_directories(BEFORE ${INC_BEFORE})
 include_directories(
     ../pcbnew

Follow ups

References