Debian Codegraph @

vendor/mruby-source/tasks/core.rake

raw
1 as_cxx_srcs = %w[vm error gc].map{|name| "#{MRUBY_ROOT}/src/#{name}.c"}
2
3 MRuby.each_target do
4 objs = Dir.glob("#{MRUBY_ROOT}/src/*.c").map do |src|
5 if cxx_exception_enabled? && as_cxx_srcs.include?(src)
6 compile_as_cxx(src)
7 else
8 objfile(src.pathmap("#{build_dir}/src/%n"))
9 end
10 end
11 self.libmruby_core_objs << objs
12 end