diff options
Diffstat (limited to 'ext/mwrap/extconf.rb')
-rw-r--r-- | ext/mwrap/extconf.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/mwrap/extconf.rb b/ext/mwrap/extconf.rb index e9dbb1e..254a3bb 100644 --- a/ext/mwrap/extconf.rb +++ b/ext/mwrap/extconf.rb @@ -25,4 +25,11 @@ else abort 'missing __builtin_add_overflow' end +begin + if n = GC::INTERNAL_CONSTANTS[:HEAP_PAGE_SIZE] + $defs << "-DHEAP_PAGE_SIZE=#{n}" + end +rescue NameError +end + create_makefile 'mwrap' |