Skip to content

Commit 19ec3cc

Browse files
committed
Workaround unsupported (or bug?) issue in RakeCompiler:
- When the `no_native` flag is set, Rake Compiler doesn't create a `native` task. But when calling the `cross` task, Rake Compiler tries to access the `native` task to modify its prequisites. https://github.com/rake-compiler/rake-compiler/blob/2ac0a366be918f1e78e3f642e8d6b5bdb28fefd3/lib/rake/extensiontask.rb#L487 This seems like a bug to me so I'll propose a fix upstream. But for now I'm creating a dummy `native` task.
1 parent 31a3b2b commit 19ec3cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cibuildgem/tasks/wrapper.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ task = Cibuildgem::CompilationTasks.new(!Rake::Task.task_defined?(:gem))
66

77
task "cibuildgem:setup" do
88
task.setup
9+
10+
task(:native) do
11+
end
912
end
1013

1114
task "copy:stage:lib" do

0 commit comments

Comments
 (0)