
Issue #21521 has been updated by ioquatix (Samuel Williams). Status changed from Open to Closed Actually, this is probably a bug with RubyGems. ---------------------------------------- Bug #21521: Don't require dummy makefile in `extconf.rb` https://bugs.ruby-lang.org/issues/21521#change-114169 * Author: ioquatix (Samuel Williams) * Status: Closed * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- On some platforms, no native extensions should be created. Due to limitations in `mkmf`, it is typical to create a dummy makefile that does nothing: https://github.com/search?q=File.write+Makefile+path%3A**%2Fextconf.rb&type=code This seems like a bad pattern, I think it would be preferable to just do: ``` # extconf.rb return if build_not_required? require "mkmf" ... create_makefile ``` -- https://bugs.ruby-lang.org/