File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY)
2828STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE )
2929CFLAGS += -std=c99 -DJERRY_NDEBUG -DJERRY_JS_PARSER '-DCONFIG_MEM_HEAP_AREA_SIZE=$(CONFIG_JERRYSCRIPT_HEAPSIZE ) ' -DCONFIG_DISABLE_ES2015_PROMISE_BUILTIN
3030CFLAGS += -I$(ROOT_DIR ) / $(shell find $(ROOT_DIR ) /jerryscript/jerry-core -type d | sed -r -e 's/^/-I/g')
31+ CFLAGS += -I$(ROOT_DIR ) /jerryscript/jerry-libm/include
3132
3233ifeq ($(CONFIG_JERRYSCRIPT_MEM_STATS ) ,y)
3334 CFLAGS += -DJMEM_STATS
@@ -45,11 +46,14 @@ endif
4546
4647.PHONY : jerry_core_allin.c
4748jerry_core_allin.c :
48- echo ' #include "jerryscript/jerry-libm/nextafter.c"' > jerry_core_allin.c
49- find $(ROOT_DIR ) /jerryscript/jerry-core -name " *.c" | sed -r -e ' s/(\.\.\/)*(.+)/#include "\2"/g' >> jerry_core_allin.c
49+ find $(ROOT_DIR ) /jerryscript/jerry-core -name " *.c" | sed -r -e ' s/(\.\.\/)*(.+)/#include "\2"/g' > jerry_core_allin.c
50+
51+ .PHONY : jerry_libm_allin.c
52+ jerry_libm_allin.c :
53+ find $(ROOT_DIR ) /jerryscript/jerry-libm -name " *.c" | sed -r -e ' s/(\.\.\/)*(.+)/#include "\2"/g' > jerry_libm_allin.c
5054
5155ASRCS = setjmp.S
52- CSRCS = jerry_core_allin.c
56+ CSRCS = jerry_core_allin.c jerry_libm_allin.c
5357MAINSRC = jerry_main.c
5458
5559CONFIG_JERRYSCRIPT_PROGNAME ?= jerry$(EXEEXT )
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ We must set the following options:
5656
5757* Change ` Build Setup -> Build Host Platform ` from _ Windows_ to _ Linux_
5858* Enable ` System Type -> FPU support `
59- * Enable ` Library Routines -> Standard Math library `
6059* Enable ` Application Configuration -> Interpreters -> JerryScript `
6160
6261If you get ` kconfig-mconf: not found ` error when you run ` make menuconfig ` you may have to install kconfig-frontends:
You can’t perform that action at this time.
0 commit comments