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

jerry.cmake: Disable LTO for JerryScript build #1901

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 26, 2019

  1. 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 <[email protected]>
    pfalcon committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    53892f8 View commit details
    Browse the repository at this point in the history