summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-04-03 20:16:14 -0600
committerGitHub <noreply@github.com>2020-04-03 20:16:14 -0600
commitf948f72a84eb7f12e9421bb59816fb9ff9271969 (patch)
treec50a5aafd85dbe18d8f79bd3f3e81d5b8fa3e7fd /cmake
parentb516f4a95c1c3d43390951186db045b15d7737dd (diff)
downloadbcm5719-ortega-f948f72a84eb7f12e9421bb59816fb9ff9271969.tar.gz
bcm5719-ortega-f948f72a84eb7f12e9421bb59816fb9ff9271969.zip
build: Enable -O3 optimizations. (#66)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config.cmake4
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 "")
OpenPOWER on IntegriCloud