Skip to content

Commit

Permalink
require the target rbconfig rather than copypasting verbatim (#233)
Browse files Browse the repository at this point in the history
Fixes #232
  • Loading branch information
ParadoxV5 committed Jan 22, 2024
1 parent d678a2e commit 9b4edc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/extensiontask.rb
Expand Up @@ -429,7 +429,7 @@ def define_cross_platform_tasks_with_version(for_platform, ruby_ver)
f.puts("require 'rbconfig'")
f.puts("original_enable_shared = RbConfig::CONFIG['ENABLE_SHARED']")
f.puts(fake_rb(for_platform, ruby_ver))
f.puts(File.read(t.prerequisites.first))
f.puts("require #{t.prerequisites.first.dump}")
f.puts("RbConfig::CONFIG['ENABLE_SHARED'] = original_enable_shared")
end
end
Expand Down

0 comments on commit 9b4edc0

Please sign in to comment.