Disable libjerry-math by default (#4428)

Normally, it is more usual and safe to use a toolchain's native
math library. Especially, if multiple components of a project use
math functions, in which case all components should be linked
against the same libm.

The libjerry-math can be used, of course, but as it needs extra
care and consideration, it should be opt-in.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2021-01-08 11:37:46 +01:00
committed by GitHub
parent 0a3aa0f48b
commit d161e2d9ed
8 changed files with 14 additions and 14 deletions
+2 -3
View File
@@ -145,9 +145,8 @@ JERRY_BUILDOPTIONS = [
platform.system() != 'Linux' or (platform.machine() != 'i386' and platform.machine() != 'x86_64'),
'-m32 is only supported on x86[-64]-linux')
),
Options('buildoption_test-no_jerry_math',
['--jerry-math=off', '--link-lib=m'],
skip=skip_if((sys.platform == 'win32'), 'There is no separated libm on Windows')),
Options('buildoption_test-jerry_math',
['--jerry-math=on']),
Options('buildoption_test-no_lcache_prophashmap',
['--compile-flag=-DJERRY_LCACHE=0', '--compile-flag=-DJERRY_PROPRETY_HASHMAP=0']),
Options('buildoption_test-external_context',