diff options
author | Evan Lojewski <github@meklort.com> | 2020-04-03 20:16:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 20:16:14 -0600 |
commit | f948f72a84eb7f12e9421bb59816fb9ff9271969 (patch) | |
tree | c50a5aafd85dbe18d8f79bd3f3e81d5b8fa3e7fd /cmake | |
parent | b516f4a95c1c3d43390951186db045b15d7737dd (diff) | |
download | bcm5719-ortega-f948f72a84eb7f12e9421bb59816fb9ff9271969.tar.gz bcm5719-ortega-f948f72a84eb7f12e9421bb59816fb9ff9271969.zip |
build: Enable -O3 optimizations. (#66)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/config.cmake b/cmake/config.cmake index 60ddeff..8fc1e95 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -42,8 +42,8 @@ ### @endcond ################################################################################ -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Os -ffunction-sections -fdata-sections") -set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Os -ffunction-sections -fdata-sections") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -O3 -ffunction-sections -fdata-sections") +set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -O3 -ffunction-sections -fdata-sections") # Remove default libraries to ensure cross compilng works as expected. SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES "") |