Skip to content

Commit 1020ba9

Browse files
committed
I tried on a rust gem and I'm not seeing any issue except this one:
- Rust gems uses `RbSys` to compile. The makefile gets created using `create_rust_makefile` and the Compilation task is `RbSysCompilation::ExtensionTask` that inherits from the classic `Rake::ExtensionTask`.
1 parent 4ddafce commit 1020ba9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/easy_compile/compilation_tasks.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@ def with_mkmf_monkey_patch
6161
instance.binary_name = name
6262
end
6363

64+
Object.define_method(:create_rust_makefile) do |name, *args|
65+
instance.binary_name = name
66+
end
67+
6468
yield
6569
ensure
6670
Object.remove_method(:create_makefile)
71+
Object.remove_method(:create_rust_makefile)
6772
end
6873

6974
def define_task(path)

0 commit comments

Comments
 (0)