Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Rust 0.5
Browse files Browse the repository at this point in the history
Also carry patch to fix showstopper repl bug

Closes #16744.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Jake Kaufman authored and klausmeyer committed Jan 10, 2013
1 parent 3b2509b commit a01e762
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Library/Formula/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

class Rust < Formula
homepage 'http://www.rust-lang.org/'
url 'http://dl.rust-lang.org/dist/rust-0.4.tar.gz'
sha256 '150685f07e4d605cadf9fba25b05e9cc1b009364dd744131cf4230d64981d093'
url 'http://dl.rust-lang.org/dist/rust-0.5.tar.gz'
sha256 'd326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a'

fails_with :clang do
build 318
cause "cannot initialize a parameter of type 'volatile long long *' with an rvalue of type 'int *'"
end

# Fix repl showstopper bug; can be removed for 0.6.
def patches
[ "https://github.com/gifnksm/rust/commit/9bf87bbf66227c132283ae59720f919601de9a56.patch",
"https://github.com/gifnksm/rust/commit/3ee1d3ebb81de199fc630a86933ac18c0a869482.patch" ]
end

def install
args = ["--prefix=#{prefix}"]
args << "--enable-clang" if ENV.compiler == :clang
Expand Down

0 comments on commit a01e762

Please sign in to comment.