Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 7b75a4f

Browse files
committed
jerry.cmake: Disable LTO for JerryScript build
With LTO compiling enabled, and Zephyr SDk 0.10.0, during final Zephyr link (which isn't done with LTO option), for armv7m targets, weird errors are thrown: zephyr-sdk-0.10.0/arm-zephyr-eabi/.../arm-zephyr-eabi/bin/ld: error: zephyr_prebuilt.elf uses VFP register arguments, /tmp/ccTrD4ap.ltrans1.ltrans.o does not Note that both JerryScript and Zephyr seem to be built with correct and consistent target options, which enable VFP usage. Disabling LTO option for JerryScript build fixes this issue. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
1 parent cef5c0d commit 7b75a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/jerry.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ set(CMAKE_ARGS
4545
-DCMAKE_C_COMPILER_WORKS=TRUE
4646
-DCMAKE_SYSTEM_NAME=Zephyr
4747
-DENABLE_ALL_IN_ONE=OFF
48-
-DENABLE_LTO=ON
48+
-DENABLE_LTO=OFF
4949
-DEXTERNAL_COMPILE_FLAGS=${external_project_cflags}
5050
-DFEATURE_ERROR_MESSAGES=ON
5151
-DFEATURE_DEBUGGER=${DEBUGGER}

0 commit comments

Comments
 (0)