jerryscript-project / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
https://jerryscript.net
Apache License 2.0
6.87k stars 666 forks source link

Fix CI for macos-latest #5142

Closed matetokodi closed 1 month ago

matetokodi commented 1 month ago

Add a non-inlineable function for negating a number on macos, bacause due to a compiler bug r = -r was being optimized out, resulting in some modulo operations failing such as -1 % -1 or -1 % 1.

Disable -Wliteral-range for test-math.c on macos, because it was falsely raised for isnan, isinf, and isfinite macros.