ext/extconf.rb in looksee-4.2.0 vs ext/extconf.rb in looksee-4.4.0
- old
+ new
@@ -2,10 +2,12 @@
extension = ruby_engine == 'ruby' ? 'mri' : ruby_engine
require 'mkmf'
$CPPFLAGS << " -DRUBY_VERSION=#{RUBY_VERSION.tr('.', '')}"
if extension == 'mri'
- if RUBY_VERSION >= '2.7.0'
+ if RUBY_VERSION >= '3.0.0'
+ $CPPFLAGS << " -Imri/3.0.0"
+ elsif RUBY_VERSION >= '2.7.0'
$CPPFLAGS << " -Imri/2.7.0"
elsif RUBY_VERSION >= '2.3.0'
$CPPFLAGS << " -Imri/2.3.0"
elsif RUBY_VERSION >= '2.2.0'
$CPPFLAGS << " -Imri/2.2.0"