diff --git a/Library/Homebrew/extend/os/linux/install.rb b/Library/Homebrew/extend/os/linux/install.rb index 6287faa..88c2772 100644 --- a/Library/Homebrew/extend/os/linux/install.rb +++ b/Library/Homebrew/extend/os/linux/install.rb @@ -38,6 +38,8 @@ module OS def check_cpu return if ::Hardware::CPU.intel? && ::Hardware::CPU.is_64_bit? return if ::Hardware::CPU.arm? + # LoongArch (loongarch64) 移植:允许在龙芯上使用,bottle 回退到源码构建 + return if RUBY_PLATFORM.include?("loongarch64") || RUBY_PLATFORM.include?("loong64") message = "Sorry, Homebrew does not support your computer's CPU architecture!" if ::Hardware::CPU.ppc64le? diff --git a/Library/Homebrew/os/linux/ld.rb b/Library/Homebrew/os/linux/ld.rb index a8d3f7b..b605d46 100644 --- a/Library/Homebrew/os/linux/ld.rb +++ b/Library/Homebrew/os/linux/ld.rb @@ -14,6 +14,8 @@ module OS /lib/ld-linux.so.3 /lib/ld-linux.so.2 /lib/ld-linux-aarch64.so.1 + /lib64/ld-linux-loongarch-lp64d.so.1 + /lib/ld-linux-loongarch-lp64d.so.1 /lib/ld-linux-armhf.so.3 /system/bin/linker64 /system/bin/linker