File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ if(ESP_PLATFORM)
1111 SRCS ${JAC_MACHINE_SRC}
1212 INCLUDE_DIRS .
1313 )
14-
15- set (QUICKJS_ENABLE_BIGNUM_EXT ${CONFIG_QUICKJS_ENABLE_BIGNUM_EXT} )
16-
17- else ()
18- option (QUICKJS_ENABLE_BIGNUM_EXT "Enable QuickJS Bignum extensions" OFF )
19-
2014endif ()
2115
2216
@@ -25,7 +19,7 @@ FetchContent_Declare(
2519 QuickJS
2620 URL https://github.com/bellard/quickjs/archive/19abf1888db5884a5758036ff6e7fa2b340acedc.tar.gz
2721 PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR} /quickjs.CMakeLists.txt <SOURCE_DIR >/CMakeLists.txt
28- CMAKE_ARGS -DESP_PLATFORM=${ESP_PLATFORM} -DQUICKJS_ENABLE_BIGNUM_EXT= ${QUICKJS_ENABLE_BIGNUM_EXT}
22+ CMAKE_ARGS -DESP_PLATFORM=${ESP_PLATFORM}
2923)
3024FetchContent_MakeAvailable (QuickJS)
3125
Original file line number Diff line number Diff line change 11menu "QuickJS"
2- config QUICKJS_ENABLE_BIGNUM_EXT
3- bool "Enable QuickJS Bignum extensions"
4- default n
5-
62endmenu
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ add_library(quickjs STATIC ${QUICKJS_SRC})
1717target_include_directories(quickjs PUBLIC .)
1818target_compile_definitions(quickjs PUBLIC -DCONFIG_VERSION="${QUICKJS_VERSION}")
1919
20- if(QUICKJS_ENABLE_BIGNUM_EXT)
21- target_compile_definitions(quickjs PUBLIC -DCONFIG_BIGNUM)
22- endif()
23-
2420target_compile_options(quickjs PRIVATE
2521 -Wno-cast-function-type
2622 -Wno-format
You can’t perform that action at this time.
0 commit comments