ruby/gc/extconf_base.rb
Nobuyoshi Nakada 1758137ead Simplify gc/mmtk/extconf.rb
- Split static recipes to depend file.
- Modify makefile configurations in the block to `create_makefile`.
- Expand rust sources in extconf.rb instead of GNU make extension.

TODO: pass `CARGO_TARGET_DIR` without shell syntax.
2025-01-14 10:21:57 -05:00

15 lines
261 B
Ruby

# frozen_string_literal: true
require "mkmf"
srcdir = File.join(__dir__, "..")
$INCFLAGS << " -I#{srcdir}"
$CPPFLAGS << " -DBUILDING_MODULAR_GC"
append_cflags("-fPIC")
def create_gc_makefile(name, &block)
create_makefile("librubygc.#{name}", &block)
end