aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorAkos Kiss <akiss@inf.u-szeged.hu>2021-01-08 11:37:46 +0100
committerGitHub <noreply@github.com>2021-01-08 11:37:46 +0100
commitd161e2d9edc364a7b3c596ad4350dbe91c82dae8 (patch)
tree8275a95af07379bd6bcf5537e0ec5ffa975d3ca6 /targets
parent0a3aa0f48baa08160e74933138fe396e81a1e900 (diff)
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
Diffstat (limited to 'targets')
-rw-r--r--targets/esp-idf/README.md2
-rw-r--r--targets/esp8266/Makefile.esp82661
-rw-r--r--targets/particle/Makefile.particle1
-rw-r--r--targets/riot-stm32f4/Makefile.riot1
4 files changed, 2 insertions, 3 deletions
diff --git a/targets/esp-idf/README.md b/targets/esp-idf/README.md
index cbe68314..a61b85f7 100644
--- a/targets/esp-idf/README.md
+++ b/targets/esp-idf/README.md
@@ -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.
diff --git a/targets/esp8266/Makefile.esp8266 b/targets/esp8266/Makefile.esp8266
index c9867c8d..ddc60c14 100644
--- a/targets/esp8266/Makefile.esp8266
+++ b/targets/esp8266/Makefile.esp8266
@@ -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)" \
diff --git a/targets/particle/Makefile.particle b/targets/particle/Makefile.particle
index f4ec5c30..b848315f 100644
--- a/targets/particle/Makefile.particle
+++ b/targets/particle/Makefile.particle
@@ -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 \
diff --git a/targets/riot-stm32f4/Makefile.riot b/targets/riot-stm32f4/Makefile.riot
index 4ccc72ce..2187c250 100644
--- a/targets/riot-stm32f4/Makefile.riot
+++ b/targets/riot-stm32f4/Makefile.riot
@@ -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)" \