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
Actions
Like0
Like0Like0