Actions
Bug #21521
closedDon't require dummy makefile in `extconf.rb`
Description
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
Updated by ioquatix (Samuel Williams) 7 days ago
- Status changed from Open to Closed
Actually, this is probably a bug with RubyGems.
Updated by byroot (Jean Boussier) 6 days ago
- Related to Feature #20152: mkmf / extconf: Add a proper way to not compile the extension added
Actions
Like0
Like0Like0