Describe the bug
When compiling to an embedded device some symbols might not be defined.
[x] <f32|f64>.round()
[ ] powi/roundf/etc from intrinsics used in lexical_core
[ ] Create regression test
Replacing .round() can be done using libm.
To Reproduce
Compile scpi for a target which does not have these symbols.
Expected behavior
Library should compile.
Library and tool versions:
scpi version: master
rust version: nightly 40-something
cargo version:
Additional context
A issue is that lexical_core which is used to parse numbers uses core intrinsics for some math operations which does not exist on all targets. Linking to libc -lc can make it compile but in my case segfaults later.
A CI/CD test should be created to avoid regression.
Describe the bug When compiling to an embedded device some symbols might not be defined.
<f32|f64>.round()
Replacing .round() can be done using libm.
To Reproduce Compile scpi for a target which does not have these symbols.
Expected behavior Library should compile.
Library and tool versions:
Additional context A issue is that lexical_core which is used to parse numbers uses core intrinsics for some math operations which does not exist on all targets. Linking to libc
-lc
can make it compile but in my case segfaults later.A CI/CD test should be created to avoid regression.