summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-10-27 22:36:40 +0900
committerdearblue <[email protected]>2020-10-28 21:10:33 +0900
commit336f0de8bbb87d8bcce17d2f54a9d2234167eef6 (patch)
tree393d3e5cb8a1466653144808585111e48af4f513 /src
parent07224f8ed9aeb3b85bb0903adae04e8f3f60df5e (diff)
downloadmruby-336f0de8bbb87d8bcce17d2f54a9d2234167eef6.tar.gz
mruby-336f0de8bbb87d8bcce17d2f54a9d2234167eef6.zip
Fixed build with `conf.enable_cxx_exception`
The problem was manifested by commit 5069fb15e41998dffef8e0ba566b3a82be369ba3.
Diffstat (limited to 'src')
-rw-r--r--src/mruby_core.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mruby_core.rake b/src/mruby_core.rake
index 73fddb220..0b9e94a20 100644
--- a/src/mruby_core.rake
+++ b/src/mruby_core.rake
@@ -4,12 +4,12 @@ MRuby.each_target do
current_build_dir = "#{build_dir}/#{relative_from_root}"
objs = Dir.glob("#{current_dir}/*.c").map { |f|
- next nil if cxx_exception_enabled? and f =~ /(error|vm).c$/
+ next nil if cxx_exception_enabled? and f =~ /(error|vm|gc)\.c$/
objfile(f.pathmap("#{current_build_dir}/%n"))
}.compact
if cxx_exception_enabled?
- objs += %w(vm error).map { |v| compile_as_cxx "#{current_dir}/#{v}.c", "#{current_build_dir}/#{v}.cxx" }
+ objs += %w(vm error gc).map { |v| compile_as_cxx "#{current_dir}/#{v}.c", "#{current_build_dir}/#{v}.cxx" }
end
self.libmruby_objs << objs