diff --git a/CMakeLists.txt b/CMakeLists.txt index f9fd2e845..0267b4c99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,15 +86,15 @@ string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) # Compile options if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR "Release") if(UNIX) - add_compile_options(-pipe -O3) + add_compile_options(-pipe) elseif(CMAKE_SYSTEM_NAME MATCHES "Generic") - add_compile_options(-pipe -O3) + add_compile_options(-pipe) endif() else() if(CMAKE_SYSTEM_NAME MATCHES "PICO") - add_compile_options(-c -Wall -Wextra -Wno-unused -Wno-strict-prototypes -pipe -g -O0) + add_compile_options(-c -Wall -Wextra -Wno-unused -Wno-strict-prototypes -pipe -g) elseif(UNIX) - add_compile_options(-c -Wall -Wextra -Werror -Wshadow -Wunused -Wstrict-prototypes -pipe -g -O0) + add_compile_options(-c -Wall -Wextra -Werror -Wshadow -Wunused -Wstrict-prototypes -pipe -g) # C99 pedantic doesn't like struct anonymous in unix header if (NOT CMAKE_C_STANDARD STREQUAL "99") add_compile_options(-Wpedantic) @@ -103,7 +103,7 @@ else() elseif(MSVC) add_compile_options(/W4 /WX /Od /wd4127) elseif(CMAKE_SYSTEM_NAME MATCHES "Generic") - add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -pipe -g -O0) + add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -pipe -g) endif() endif()