Module: MakeMakefile
- Defined in:
- lib/extconf_compile_commands_json/autoload.rb
Overview
We have to patch MakeMakefile directly, rather than prepending to it, because requiring mkmf includes it into the toplevel main object straight away. So prepending here would be too late.
Instance Method Summary collapse
Instance Method Details
#__extconfcc_orig_create_makefile ⇒ Object
19 |
# File 'lib/extconf_compile_commands_json/autoload.rb', line 19 alias_method :__extconfcc_orig_create_makefile, :create_makefile |
#create_makefile ⇒ Object
20 21 22 23 24 25 |
# File 'lib/extconf_compile_commands_json/autoload.rb', line 20 def create_makefile(...) r = __extconfcc_orig_create_makefile(...) ExtconfCompileCommandsJson.generate! ExtconfCompileCommandsJson.symlink! r end |