pcsx-redux/tools/vscode-extension/scripts/mipsel-none-elf-binutils.rb
2023-02-26 21:53:47 -08:00

21 lines
728 B
Ruby

class MipselNoneElfBinutils < Formula
desc "FSF Binutils for mipsel cross development"
homepage "https://www.gnu.org/software/binutils/"
url "https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.gz"
sha256 "d7f82c4047decf43a6f769ac32456a92ddb6932409a585c633cdd4e9df23d956"
depends_on "texinfo" => :build
def install
system "./configure", "--target=mipsel-none-elf",
"--disable-multilib",
"--disable-nls",
"--disable-werror",
"--prefix=#{prefix}"
system "make"
system "make", "install-strip"
end
test do
assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv")
end
end