Skip to content

Commit ab56f33

Browse files
Geod24carlocab
authored andcommitted
ldc: update to 1.25.0
Closes #71678. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
1 parent 4971d32 commit ab56f33

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

Formula/ldc.rb

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
class Ldc < Formula
22
desc "Portable D programming language compiler"
33
homepage "https://wiki.dlang.org/LDC"
4-
url "https://github.com/ldc-developers/ldc/releases/download/v1.24.0/ldc-1.24.0-src.tar.gz"
5-
sha256 "fd9561ade916e9279bdcc166cf0e4836449c24e695ab4470297882588adbba3c"
4+
url "https://github.com/ldc-developers/ldc/releases/download/v1.25.0/ldc-1.25.0-src.tar.gz"
5+
sha256 "6466441698f07ff00dfa7eadee1b9885df8698dbfd70bd9744bd1881ab466737"
66
license "BSD-3-Clause"
7-
revision 1
87
head "https://github.com/ldc-developers/ldc.git", shallow: false
98

109
livecheck do
@@ -29,15 +28,10 @@ class Ldc < Formula
2928
end
3029

3130
resource "ldc-bootstrap" do
32-
url "https://github.com/ldc-developers/ldc/releases/download/v1.24.0/ldc2-1.24.0-osx-x86_64.tar.xz"
33-
sha256 "91b74856982d4d5ede6e026f24e33887d931db11b286630554fc2ad0438cda44"
31+
url "https://github.com/ldc-developers/ldc/releases/download/v1.25.0/ldc2-1.25.0-osx-x86_64.tar.xz"
32+
sha256 "ea22a76d2fa86a52ca9b24bca980ffc12db56fbf8ef9582c586da24f83eb58f5"
3433
end
3534

36-
# Add support for building against LLVM 11.1
37-
# This is already merged upstream via https://github.com/ldc-developers/druntime/pull/195
38-
# but it needs adjustments to apply against 1.24.0 tarball
39-
patch :DATA
40-
4135
def install
4236
ENV.cxx11
4337
(buildpath/"ldc-bootstrap").install resource("ldc-bootstrap")
@@ -75,15 +69,3 @@ def install
7569
assert_match "Hello, world!", shell_output("./test")
7670
end
7771
end
78-
79-
__END__
80-
--- ldc-1.24.0-src/runtime/druntime/src/ldc/intrinsics.di.ORIG 2021-02-19 00:16:52.000000000 +0000
81-
+++ ldc-1.24.0-src/runtime/druntime/src/ldc/intrinsics.di 2021-02-19 00:17:05.000000000 +0000
82-
@@ -26,6 +26,7 @@
83-
else version (LDC_LLVM_900) enum LLVM_version = 900;
84-
else version (LDC_LLVM_1000) enum LLVM_version = 1000;
85-
else version (LDC_LLVM_1100) enum LLVM_version = 1100;
86-
+else version (LDC_LLVM_1101) enum LLVM_version = 1101;
87-
else static assert(false, "LDC LLVM version not supported");
88-
89-
enum LLVM_atleast(int major) = (LLVM_version >= major * 100);

0 commit comments

Comments
 (0)