ext/rcovrt/extconf.rb in relevance-rcov-0.8.2.1 vs ext/rcovrt/extconf.rb in relevance-rcov-0.8.3.0
- old
+ new
@@ -1,23 +1,21 @@
-unless RUBY_PLATFORM == 'java' then
- require 'mkmf'
-
- dir_config("gcov")
- if ENV["USE_GCOV"] and Config::CONFIG['CC'] =~ /gcc/ and
- have_library("gcov", "__gcov_open")
-
- $CFLAGS << " -fprofile-arcs -ftest-coverage"
- if RUBY_VERSION =~ /1.9/
- $CFLAGS << ' -DRUBY_19_COMPATIBILITY'
- create_makefile("rcovrt", "1.9/")
- else
- create_makefile("rcovrt", "1.8/")
- end
+require 'mkmf'
+
+dir_config("gcov")
+if ENV["USE_GCOV"] and Config::CONFIG['CC'] =~ /gcc/ and
+ have_library("gcov", "__gcov_open")
+
+ $CFLAGS << " -fprofile-arcs -ftest-coverage"
+ if RUBY_VERSION =~ /1.9/
+ $CFLAGS << ' -DRUBY_19_COMPATIBILITY'
+ create_makefile("rcovrt", "1.9/")
else
- if RUBY_VERSION =~ /1.9/
- $CFLAGS << ' -DRUBY_19_COMPATIBILITY'
- create_makefile("rcovrt", "1.9/")
- else
- create_makefile("rcovrt", "1.8/")
- end
+ create_makefile("rcovrt", "1.8/")
end
-end
\ No newline at end of file
+else
+ if RUBY_VERSION =~ /1.9/
+ $CFLAGS << ' -DRUBY_19_COMPATIBILITY'
+ create_makefile("rcovrt", "1.9/")
+ else
+ create_makefile("rcovrt", "1.8/")
+ end
+end