Skip to content

Commit

Permalink
Generate types.conf independent from version changes
Browse files Browse the repository at this point in the history
It was irritating, that the types.conf wasn't generated unless the version changed.
  • Loading branch information
larskanis committed Apr 16, 2020
1 parent 31db412 commit 4f1dcd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Rakefile
Expand Up @@ -145,7 +145,7 @@ require_relative "lib/ffi/platform"
types_conf = File.expand_path(File.join(FFI::Platform::CONF_DIR, 'types.conf'))
logfile = File.join(File.dirname(__FILE__), 'types_log')

file types_conf => File.join("lib", "ffi", "version.rb") do |task|
task types_conf do |task|
require 'fileutils'
require_relative "lib/ffi/tools/types_generator"
options = {}
Expand All @@ -159,8 +159,7 @@ file types_conf => File.join("lib", "ffi", "version.rb") do |task|
end

desc "Create or update type information for platform #{FFI::Platform::NAME}"
task :types_conf => types_conf do
end
task :types_conf => types_conf

Gem::Tasks.new do |t|
t.scm.tag.format = '%s'
Expand Down

0 comments on commit 4f1dcd2

Please sign in to comment.