Skip to content
Snippets Groups Projects
Commit 7403425f authored by James Scrase's avatar James Scrase
Browse files

Fix optimisation flags, so delay_ms works

parent 3b7f6ac4
No related branches found
No related tags found
No related merge requests found
...@@ -117,15 +117,12 @@ message(STATUS "Set CMAKE_SYSTEM_LIBRARY_PATH to ${CMAKE_SYSTEM_LIBRARY_PATH}") ...@@ -117,15 +117,12 @@ message(STATUS "Set CMAKE_SYSTEM_LIBRARY_PATH to ${CMAKE_SYSTEM_LIBRARY_PATH}")
################################################################################## ##################################################################################
set(CSTANDARD "") set(CSTANDARD "")
set(CDEBUG "") set(CDEBUG "")
set(CWARN "-Wall -Wextra -Wno-main -Wstrict-overflow=5 -Winline") set(CWARN -Wall -Wextra -Wno-main -Wstrict-overflow=5 -Winline)
set(CTUNING "-fstrict-overflow -fno-strict-aliasing") set(CTUNING -fstrict-overflow -fno-strict-aliasing)
set(COPT "-Os") set(COPT -Os)
set(CMCU "-mmcu=${MCU}")
#set(CDEFS "-DF_CPU=${F_CPU}") Have to set this using the line below otherwise we get errors about not defining F_CPU
add_definitions(-DF_CPU=${F_CPU})
set(CMAKE_C_CFLAGS "${CMCU} ${CDEBUG} ${CDEFS} ${COPT} ${CWARN} ${CSTANDARD} ${CTUNING}")
add_definitions(-DF_CPU=${F_CPU})
add_compile_options(${CDEBUG} ${COPT} ${CWARN} ${CSTANDARD} ${CTUNING})
### File Discovery ### File Discovery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment