From f388fb7d5c84d6318e108be56d15da73fc200e9f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 29 Nov 2022 00:49:29 +0400 Subject: [PATCH] Revert "Disable Ruby preallocated symbols" This reverts commit d6c73c24a45b179eede2f29db2593a8d7b6b6b61. --- build_config.rb | 3 --- src/Makefile | 1 - src/main.c | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build_config.rb b/build_config.rb index 39a1906..b343bcc 100644 --- a/build_config.rb +++ b/build_config.rb @@ -4,12 +4,9 @@ DEST_DIR = File.join(ROOT_DIR, 'dest').freeze MRuby::CrossBuild.new 'mrubyvisor' do |conf| conf.toolchain :gcc - conf.disable_presym - conf.cc.defines << 'MRB_NO_BOXING' << 'MRB_NO_FLOAT' << - 'MRB_NO_PRESYM' << 'MRB_NO_STDIO' conf.cc.flags << diff --git a/src/Makefile b/src/Makefile index 6db2842..f966673 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,7 +20,6 @@ CPPFLAGS = \ -DKERNAUX_DEBUG \ -DMRB_NO_BOXING \ -DMRB_NO_FLOAT \ - -DMRB_NO_PRESYM \ -DMRB_NO_STDIO OBJS = start.S.o main.c.o diff --git a/src/main.c b/src/main.c index 4d72522..6ac5d8d 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ #include #include +#include #include #include