From 2a0a4036993160f555a3df86a53a91a89a2701ac Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 23 Sep 2024 21:24:28 +0800 Subject: [PATCH] Fix x86_64 targets --- update_formulaes.py | 2 +- x86_64-unknown-linux-gnu.rb | 2 +- x86_64-unknown-linux-musl.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/update_formulaes.py b/update_formulaes.py index 47685f3..8c457fd 100644 --- a/update_formulaes.py +++ b/update_formulaes.py @@ -41,7 +41,7 @@ def fetch_targets_from_latest_release(): if target not in targets: targets[target] = { "version": version, - "name": target.title().replace("-", ""), + "name": target.title().replace("-", "").replace("_", ""), "description": f"{target} Toolchain", } if arch == "aarch64": diff --git a/x86_64-unknown-linux-gnu.rb b/x86_64-unknown-linux-gnu.rb index 597ca51..ad64ec7 100644 --- a/x86_64-unknown-linux-gnu.rb +++ b/x86_64-unknown-linux-gnu.rb @@ -1,4 +1,4 @@ -class X86_64UnknownLinuxGnu < Formula +class X8664UnknownLinuxGnu < Formula desc "x86_64-unknown-linux-gnu Toolchain" homepage "https://github.com/messense/homebrew-macos-cross-toolchains" license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" } diff --git a/x86_64-unknown-linux-musl.rb b/x86_64-unknown-linux-musl.rb index 5203a1b..2fbf31f 100644 --- a/x86_64-unknown-linux-musl.rb +++ b/x86_64-unknown-linux-musl.rb @@ -1,4 +1,4 @@ -class X86_64UnknownLinuxMusl < Formula +class X8664UnknownLinuxMusl < Formula desc "x86_64-unknown-linux-musl Toolchain" homepage "https://github.com/messense/homebrew-macos-cross-toolchains" license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }