Skip to content

Commit

Permalink
rust: apply patch to fix duplicate object file bug
Browse files Browse the repository at this point in the history
Having multiple object files with the same name upsets libtool and
breaks the librsvg build. See Homebrew#85278.
  • Loading branch information
carlocab authored and branchvincent committed Dec 30, 2021
1 parent fc71fff commit 7435208
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Rust < Formula
desc "Safe, concurrent, practical language"
homepage "https://www.rust-lang.org/"
license any_of: ["Apache-2.0", "MIT"]
revision 1

stable do
url "https://static.rust-lang.org/dist/rustc-1.56.1-src.tar.gz"
Expand Down Expand Up @@ -61,6 +62,14 @@ class Rust < Formula
end
end

# Make sure object files in static archives have distinct names.
# https://github.com/rust-lang/compiler-builtins/issues/443
patch do
url "https://github.com/rust-lang/compiler-builtins/commit/eaab9d29ecbf538369d7f26953425eb78dae8229.patch?full_index=1"
sha256 "2eaafddf3dad416431b42f3a5e222a2d4261ab026a165c7f23d6ec378a0ccff5"
directory "vendor/compiler_builtins"
end

def install
ENV.prepend_path "PATH", Formula["[email protected]"].opt_libexec/"bin"

Expand Down

0 comments on commit 7435208

Please sign in to comment.