Skip to content

Commit d867c17

Browse files
committed
Don't compile the extension on non-CRuby, it's unused
1 parent b764c86 commit d867c17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/concurrent-ruby-ext/extconf.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
require 'fileutils'
2+
require 'mkmf'
3+
4+
unless RUBY_ENGINE == "ruby"
5+
File.write("Makefile", dummy_makefile($srcdir).join(""))
6+
exit
7+
end
28

39
extension_name = 'concurrent_ruby_ext'
410

5-
require 'mkmf'
611
dir_config(extension_name)
712
have_header "libkern/OSAtomic.h"
813

0 commit comments

Comments
 (0)