Commit 90283432 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix build with `enable_cxx_exception`

parent 01aa2a99
......@@ -3,15 +3,14 @@ MRuby::Gem::Specification.new 'mruby-compiler' do |spec|
spec.author = 'mruby developers'
spec.summary = 'mruby compiler library'
as_cxx_srcs = %w[codegen y.tab].map{|name| "#{dir}/core/#{name}.c"}
objs = Dir.glob("#{dir}/core/*.c").map do |src|
if build.cxx_exception_enabled? && as_cxx_srcs.include?(src)
objs = %w[codegen y.tab].map do |name|
src = "#{dir}/core/#{name}.c"
if build.cxx_exception_enabled?
build.compile_as_cxx(src)
else
objfile(src.pathmap("#{build_dir}/core/%n"))
end
end
objs << objfile("#{build_dir}/core/y.tab")
build.libmruby_core_objs << objs
lex_def = "#{dir}/core/lex.def"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment