Allow variables in modular_gc_dir
Such as `$(ruby_version)`, `$(arch)` and so on.
This commit is contained in:
parent
626037e143
commit
2f2530b195
Notes:
git
2024-12-22 13:42:57 +00:00
1
gc.c
1
gc.c
@ -707,6 +707,7 @@ typedef struct gc_function_map {
|
|||||||
static rb_gc_function_map_t rb_gc_functions;
|
static rb_gc_function_map_t rb_gc_functions;
|
||||||
|
|
||||||
# define RUBY_GC_LIBRARY "RUBY_GC_LIBRARY"
|
# define RUBY_GC_LIBRARY "RUBY_GC_LIBRARY"
|
||||||
|
# define MODULAR_GC_DIR STRINGIZE(modular_gc_dir)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ruby_modular_gc_init(void)
|
ruby_modular_gc_init(void)
|
||||||
|
@ -97,7 +97,7 @@ cppflags = @cppflags@
|
|||||||
incflags = @incflags@
|
incflags = @incflags@
|
||||||
RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty
|
RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty
|
||||||
_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=)
|
_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=)
|
||||||
XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1)
|
XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1) -Dmodular_gc_dir="$(modular_gc_dir)"
|
||||||
USE_RUBYGEMS = @USE_RUBYGEMS@
|
USE_RUBYGEMS = @USE_RUBYGEMS@
|
||||||
USE_RUBYGEMS_ = $(USE_RUBYGEMS:yes=)
|
USE_RUBYGEMS_ = $(USE_RUBYGEMS:yes=)
|
||||||
CPPFLAGS = @CPPFLAGS@ $(USE_RUBYGEMS_:no=-DDISABLE_RUBYGEMS=1)
|
CPPFLAGS = @CPPFLAGS@ $(USE_RUBYGEMS_:no=-DDISABLE_RUBYGEMS=1)
|
||||||
|
@ -156,6 +156,9 @@ DEBUGFLAGS = -Zi
|
|||||||
!if "$(RUBY_DEVEL)" == "yes"
|
!if "$(RUBY_DEVEL)" == "yes"
|
||||||
XCFLAGS = $(XCFLAGS) -DRUBY_DEVEL=1
|
XCFLAGS = $(XCFLAGS) -DRUBY_DEVEL=1
|
||||||
!endif
|
!endif
|
||||||
|
!if "$(modular_gc_dir)" != ""
|
||||||
|
XCFLAGS = $(XCFLAGS) -Dmodular_gc_dir="$(modular_gc_dir)"
|
||||||
|
!endif
|
||||||
!if !defined(OPTFLAGS)
|
!if !defined(OPTFLAGS)
|
||||||
!if $(MSC_VER) < 1400
|
!if $(MSC_VER) < 1400
|
||||||
OPTFLAGS = -O2b2xg-
|
OPTFLAGS = -O2b2xg-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user