Skip to content

Commit

Permalink
Don't compile the extension on non-CRuby, it's unused
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 21, 2023
1 parent b764c86 commit d867c17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/concurrent-ruby-ext/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
require 'fileutils'
require 'mkmf'

unless RUBY_ENGINE == "ruby"
File.write("Makefile", dummy_makefile($srcdir).join(""))
exit
end

extension_name = 'concurrent_ruby_ext'

require 'mkmf'
dir_config(extension_name)
have_header "libkern/OSAtomic.h"

Expand Down

0 comments on commit d867c17

Please sign in to comment.