Skip to content

Commit b1d8894

Browse files
committed
Specify MRB_NO_BOXING to prevent panic on esp32.
1 parent 0343caa commit b1d8894

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/mruby/build_config.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
cc.defines << %w(MRB_STR_BUF_MIN_SIZE=20)
4141
cc.defines << %w(MRB_GC_STRESS)
4242
cc.defines << %w(POOL_PAGE_SIZE=256)
43+
cc.defines << %w(MRB_NO_BOXING)
44+
cc.defines << %w(MRB_USE_METHOD_T_STRUCT)
4345
end
4446

4547
conf.cxx do |cxx|

main/component.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
COMPONENT_DEPENDS = mruby
2+
CFLAGS += -DMRB_NO_BOXING

0 commit comments

Comments
 (0)