You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applications using lib_xcore_math can be built for the native host instead of xcore, and in that case they need to link with the -lm option. We don't have a way to specify that through the LIB_COMPILER_FLAGS option or similar. There is a workaround, which is something like this in lib_build_info.cmake:
...
XMOS_REGISTER_MODULE()
if(BUILD_NATIVE)
foreach(target ${APP_BUILD_TARGETS})
target_link_libraries(${target} PRIVATE m)
endforeach()
endif()
The text was updated successfully, but these errors were encountered:
Applications using lib_xcore_math can be built for the native host instead of xcore, and in that case they need to link with the
-lm
option. We don't have a way to specify that through the LIB_COMPILER_FLAGS option or similar. There is a workaround, which is something like this in lib_build_info.cmake:The text was updated successfully, but these errors were encountered: