ldc 1.1.0

Closes #9524.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
John Colvin 2017-02-01 11:52:27 +00:00 committed by Tomasz Pajor
parent b071b3f7d2
commit 7ba96fee37

View file

@ -3,11 +3,8 @@ class Ldc < Formula
homepage "https://wiki.dlang.org/LDC"
stable do
# for the sake of LLVM 3.9 compatibility
url "https://github.com/ldc-developers/ldc.git",
:branch => "release-1.0.1",
:revision => "3461e00f3531f855f9fc6e92515d7affb8201827"
version "1.0.1-alpha1"
url "https://github.com/ldc-developers/ldc/releases/download/v1.1.0/ldc-1.1.0-src.tar.gz"
sha256 "3b95216cd664e140dca321a6364c2238c442c972d6ccca8b9a65cb02d2e47112"
resource "ldc-lts" do
url "https://github.com/ldc-developers/ldc/releases/download/v0.17.2/ldc-0.17.2-src.tar.gz"
@ -21,17 +18,6 @@ class Ldc < Formula
sha256 "8d827625dea278303befcbb997d3e1713b7d85e257705a30da72ce1519eab147" => :yosemite
end
devel do
url "https://github.com/ldc-developers/ldc/releases/download/v1.1.0-beta6/ldc-1.1.0-beta6-src.tar.gz"
sha256 "2ded84ba496d1fb02571745bb3679dce06664009bcd200c8d352b746c9399262"
version "1.1.0-beta6"
resource "ldc-lts" do
url "https://github.com/ldc-developers/ldc/releases/download/v0.17.2/ldc-0.17.2-src.tar.gz"
sha256 "8498f0de1376d7830f3cf96472b874609363a00d6098d588aac5f6eae6365758"
end
end
head do
url "https://github.com/ldc-developers/ldc.git", :shallow => false
@ -79,11 +65,8 @@ class Ldc < Formula
}
EOS
if build.stable?
system bin/"ldc2", "test.d"
else
system bin/"ldc2", "-flto=full", "test.d"
end
system bin/"ldc2", "-flto=full", "test.d"
assert_match "Hello, world!", shell_output("./test")
system bin/"ldmd2", "test.d"
assert_match "Hello, world!", shell_output("./test")