Skip to content

Commit 29c07a9

Browse files
committed
Pass options from rake task to the FFI::Generator
1 parent 7efdd2e commit 29c07a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/ffi/tools/generator_task.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# @see FFI::Generator for a description of the file content
1616
class FFI::Generator::Task < Rake::TaskLib
1717

18-
def initialize(rb_names)
18+
def initialize(rb_names, options={})
1919
task :clean do rm_f rb_names end
2020

2121
rb_names.each do |rb_name|
@@ -24,7 +24,7 @@ def initialize(rb_names)
2424
file rb_name => ffi_name do |t|
2525
puts "Generating #{rb_name}..." if Rake.application.options.trace
2626

27-
FFI::Generator.new ffi_name, rb_name
27+
FFI::Generator.new ffi_name, rb_name, options
2828
end
2929
end
3030
end

0 commit comments

Comments
 (0)