Skip to content

Commit

Permalink
ext: work with rake-compiler-dock 1.6.0
Browse files Browse the repository at this point in the history
which uses ubuntu images instead of manylinux images.
  • Loading branch information
flavorjones committed Dec 11, 2024
1 parent aeb7ad1 commit 1b0d927
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions rakelib/extensions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ CrossRuby = Struct.new(:version, :platform) do
when "x86-mingw32"
"i686-w64-mingw32-"
when "x86_64-linux"
"x86_64-redhat-linux-gnu-"
if RakeCompilerDock::IMAGE_VERSION >= "1.6"
"x86_64-linux-gnu-"
else
"x86_64-redhat-linux-gnu-"
end
when "x86-linux"
"i686-redhat-linux-gnu-"
if RakeCompilerDock::IMAGE_VERSION >= "1.6"
"i686-linux-gnu-"
else
"i686-redhat-linux-gnu-"
end
when "aarch64-linux"
"aarch64-linux-gnu-"
when "x86_64-darwin"
Expand Down Expand Up @@ -204,7 +212,11 @@ CrossRuby = Struct.new(:version, :platform) do
def dll_ref_versions
case platform
when X86_LINUX_PLATFORM_REGEX
{ "GLIBC" => "2.17" }
if RakeCompilerDock::IMAGE_VERSION >= "1.6"
{ "GLIBC" => "2.29" }
else
{ "GLIBC" => "2.17" }
end
when AARCH_LINUX_PLATFORM_REGEX, ARM_LINUX_PLATFORM_REGEX
{ "GLIBC" => "2.29" }
else
Expand Down

0 comments on commit 1b0d927

Please sign in to comment.