summaryrefslogtreecommitdiff
path: root/zephyr/fpu.cmake
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-09-03 15:33:33 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-03 23:08:03 +0000
commit9b0e4048b3e4b0d7a32925e44600697c17cdb206 (patch)
treeb7ae341b68388e7ee9c38114be793858a1efdfae /zephyr/fpu.cmake
parent232c3f8044329a07bc42f12d35c57bcec29f407d (diff)
downloadchrome-ec-9b0e4048b3e4b0d7a32925e44600697c17cdb206.tar.gz
gitlab: Set the fpu flags correctly
Use the zephyr_cc_option function instead of modifying CMAKE vars. BUG=b:178731498 TEST=zmake testall in docker container BRANCH=None Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I97e6481e9ba3fb865e7ad49e029dfa50731a7fe6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3140779 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/fpu.cmake')
-rw-r--r--zephyr/fpu.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/zephyr/fpu.cmake b/zephyr/fpu.cmake
index ddf782e5c8..5f1c698b15 100644
--- a/zephyr/fpu.cmake
+++ b/zephyr/fpu.cmake
@@ -36,7 +36,5 @@ we must set the following modes:
supports SSE and is known to work (there may be other good choices).
]]
if(DEFINED CONFIG_SOC_POSIX)
- set(FLOAT_FLAGS "-msse -mfpmath=sse -march=pentium4")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLOAT_FLAGS}")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLOAT_FLAGS}")
+ zephyr_cc_option(-msse -mfpmath=sse -march=pentium4)
endif()