ruby-internal 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/mkmf-ruby-internal.rb +3 -3
- metadata +1 -1
data/ext/mkmf-ruby-internal.rb
CHANGED
@@ -98,14 +98,14 @@ END
|
|
98
98
|
end
|
99
99
|
|
100
100
|
base_dir = File.dirname(__FILE__)
|
101
|
-
$CPPFLAGS
|
101
|
+
$CPPFLAGS.gsub!(/^/, "-I#{base_dir} ")
|
102
102
|
|
103
103
|
ruby_version_code = RUBY_VERSION.gsub(/\./, '').to_i
|
104
104
|
if ruby_version_code >= 190 then
|
105
105
|
if USING_CACHED_FILES then
|
106
|
-
$CPPFLAGS
|
106
|
+
$CPPFLAGS.gsub!(/^/, "-I#{base_dir}/internal/yarv-headers ")
|
107
107
|
else
|
108
|
-
$CPPFLAGS
|
108
|
+
$CPPFLAGS.gsub!(/^/, "-I#{RUBY_SOURCE_DIR} ")
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|