Skip to content

Commit

Permalink
Fix repeated generation of autoconf files
Browse files Browse the repository at this point in the history
autoreconf doesn't update the timestamp of already existing files.
Update the timestamp of the to be generated files manually.

Gem::Specification.load() caches files, so that it's loaded as
./ffi.gemspec now.
  • Loading branch information
larskanis committed Feb 22, 2018
1 parent ef52122 commit 96d8baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -223,7 +223,8 @@ end.each do |f|
chdir "ext/ffi_c/libffi" do
sh "sh ./autogen.sh"
end
if gem_spec.files != Gem::Specification.load('ffi.gemspec')
touch f
if gem_spec.files != Gem::Specification.load('./ffi.gemspec').files
warn "gemspec files have changed -> Please restart rake!"
exit 1
end
Expand Down

0 comments on commit 96d8baa

Please sign in to comment.