Right now Gem::Specification being exposed is the original one. The dup of it happens later in the process, when actually should happen if cross_compile is defined.
This will allow adding specifics to the cross platform gem.
NOTE: Suggested will be expose it as cross_gem_spec since gem_spec is used for native versions.
Allow alteration of the Gem Specification when cross compiling. Closed by 1bb1c7e
This is useful to indicate a custom requirement message, like DLLs
installation or similar.
Rake::ExtensionTask.new('my_extension', GEM_SPEC) do |ext|
ext.cross_compile = true
ext.cross_compiling do |gem_spec|
gem_spec.post_install_message = "You've installed a binary version of this gem"