File: core.rake

package info (click to toggle)
mruby 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: ansic: 51,933; ruby: 29,510; yacc: 7,077; cpp: 517; makefile: 51; sh: 42
file content (12 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
as_cxx_srcs = %w[vm error gc].map{|name| "#{MRUBY_ROOT}/src/#{name}.c"}

MRuby.each_target do
  objs = Dir.glob("#{MRUBY_ROOT}/src/*.c").map do |src|
    if cxx_exception_enabled? && as_cxx_srcs.include?(src)
      compile_as_cxx(src)
    else
      objfile(src.pathmap("#{build_dir}/src/%n"))
    end
  end
  self.libmruby_core_objs << objs
end