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:
@@ -1,7 +1,7 @@
|
||||
This is a port for espressif's esp-idf (esp32). The MATH, LTO and STRIP options should be disabled, so to build under the IDF toolchain, just run the following command
|
||||
|
||||
```
|
||||
python tools\build.py --toolchain=cmake/toolchain-esp32.cmake --cmake-param "-GUnix Makefiles" --jerry-cmdline=OFF --jerry-port-default=OFF --jerry-math=OFF --lto=OFF --strip=OFF
|
||||
python tools\build.py --toolchain=cmake/toolchain-esp32.cmake --cmake-param "-GUnix Makefiles" --jerry-cmdline=OFF --jerry-port-default=OFF --lto=OFF --strip=OFF
|
||||
```
|
||||
|
||||
NB: the MATH, STRIP and LTO might be disabled by platform as well. I strongly suggest limiting heap memorry with '--mem-heap=128' but that really depends on the SRAM avaiulable on your esp32.
|
||||
|
||||
@@ -50,6 +50,7 @@ jerry:
|
||||
-DCMAKE_C_COMPILER_WORKS=TRUE \
|
||||
-DENABLE_LTO=OFF \
|
||||
-DENABLE_ALL_IN_ONE=ON \
|
||||
-DJERRY_MATH=ON \
|
||||
-DJERRY_CMDLINE=OFF \
|
||||
-DJERRY_PROFILE="es5.1" \
|
||||
-DEXTERNAL_COMPILE_FLAGS="$(ESP_CFLAGS)" \
|
||||
|
||||
@@ -45,7 +45,6 @@ jerrycore:
|
||||
-DCMAKE_C_COMPILER_WORKS=TRUE \
|
||||
-DENABLE_LTO=ON \
|
||||
-DENABLE_ALL_IN_ONE=OFF \
|
||||
-DJERRY_MATH=OFF \
|
||||
-DJERRY_CMDLINE=OFF \
|
||||
-DJERRY_PROFILE=minimal \
|
||||
-DENABLE_STRIP=OFF \
|
||||
|
||||
@@ -47,7 +47,6 @@ libjerry:
|
||||
-DCMAKE_C_COMPILER_WORKS=TRUE \
|
||||
-DENABLE_LTO=OFF \
|
||||
-DENABLE_ALL_IN_ONE=OFF \
|
||||
-DJERRY_MATH=OFF \
|
||||
-DJERRY_CMDLINE=OFF \
|
||||
-DJERRY_PROFILE="es5.1" \
|
||||
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
||||
|
||||
Reference in New Issue
Block a user