1
1
class Ldc < Formula
2
2
desc "Portable D programming language compiler"
3
3
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 "
6
6
license "BSD-3-Clause"
7
- revision 1
8
7
head "https://github.com/ldc-developers/ldc.git" , shallow : false
9
8
10
9
livecheck do
@@ -29,15 +28,10 @@ class Ldc < Formula
29
28
end
30
29
31
30
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 "
34
33
end
35
34
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
-
41
35
def install
42
36
ENV . cxx11
43
37
( buildpath /"ldc-bootstrap" ) . install resource ( "ldc-bootstrap" )
@@ -75,15 +69,3 @@ def install
75
69
assert_match "Hello, world!" , shell_output ( "./test" )
76
70
end
77
71
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