Skip to content

testing/wabt: Disable link-time optimization

Alexey Yerin requested to merge yyp/aports:wabt-disable-lto into master

Wabt compiles two static libraries: libwabt.a and libwasm-rt-impl.a. When forced to compile with LTO, those libraries end up with LLVM bytecode files with .o extension, causing linking to fail in a lot of cases.

CMake lacks sufficient support for LTO to compile static libraries correctly, so I think the best solution for now is to disable it.

Merge request reports