Skip to content

Commit dae846a

Browse files
authored
Merge pull request #217396 from Homebrew/adaptivecpp-llvm20
adaptivecpp: revision bump (switch to `llvm@19`)
2 parents 93c3f1d + b095cd3 commit dae846a

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

Formula/a/adaptivecpp.rb

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,50 @@
11
class Adaptivecpp < Formula
22
desc "SYCL and C++ standard parallelism for CPUs and GPUs"
3-
homepage "https://github.com/AdaptiveCpp/AdaptiveCpp"
3+
homepage "https://adaptivecpp.github.io/"
44
url "https://github.com/AdaptiveCpp/AdaptiveCpp/archive/refs/tags/v24.10.0.tar.gz"
55
sha256 "3bcd94eee41adea3ccc58390498ec9fd30e1548af5330a319be8ce3e034a6a0b"
66
license "BSD-2-Clause"
7+
revision 1
78
head "https://github.com/AdaptiveCpp/AdaptiveCpp.git", branch: "develop"
89

910
bottle do
10-
sha256 arm64_sequoia: "6af7a60866ba36c0ba11868fc6e297770759edd2a27cc0a5b0b367710e86b6bb"
11-
sha256 arm64_sonoma: "f9c9b8747b3683f0867fd1a5fa9003c79021eb0e348f4dff8151be1df7489edd"
12-
sha256 arm64_ventura: "6712a76c4d5506b9cd9c687bbc6e70897753b976597ee2f92461efe818261dab"
13-
sha256 sonoma: "4d6a4b0814bf29cd7c1c42fe56f5c6fe35bbf92616c3aefd40f54f97069cfe9a"
14-
sha256 ventura: "a3d0b58605759af86b67a17f88ffdf7bb34219f8ca45a6b4886e142ed8301a9c"
15-
sha256 arm64_linux: "ba37452491530ad9be470ede52f2f0e8533a340bc16c0a2498386e27670ee97c"
16-
sha256 x86_64_linux: "8fbf35c1a2f4dfec80ed3d99d03908d8fcfcf8ad85f8fb7c587414b9b1be5859"
11+
sha256 arm64_sequoia: "8cb6f094a3fbf0f910601703c6d7e65831b8e568967e5a66ebfa950a98b0a968"
12+
sha256 arm64_sonoma: "8d9a08397ebf84cbbd09d37aca3b75464e3ee888a01d509aa8271dedf4dfbcbc"
13+
sha256 arm64_ventura: "3c6e4a92536c76c3b791a5c905d37d5f1d61e392f0dce155cf9720ece150aa83"
14+
sha256 sonoma: "28388ca4a208e7e7d116bbbb4fb91458fa6217632db3579e9d3cf2ae2d4c4485"
15+
sha256 ventura: "3571494508ad1edb0f2f7636613b6c200725befa53190239d95a6b2cc5579a36"
16+
sha256 arm64_linux: "dd452feb307577a151f2132bc2c3508c26c44249d57a1445970dc7ee850591cc"
17+
sha256 x86_64_linux: "fbd4be61d9ad7377b5a54884ad1feeb4b4bf0e12df662d81ba0387100ce586c5"
1718
end
1819

1920
depends_on "cmake" => :build
2021
depends_on "boost"
21-
depends_on "llvm"
22+
depends_on "llvm@19"
2223
uses_from_macos "python"
2324

2425
on_macos do
2526
depends_on "libomp"
2627
end
2728

2829
def install
29-
libomp_root = Formula["libomp"].opt_prefix
30+
args = []
31+
if OS.mac?
32+
libomp_root = Formula["libomp"].opt_prefix
33+
args << "-DOpenMP_ROOT=#{libomp_root}"
34+
end
3035

31-
system "cmake", "-S", ".", "-B", "build", "-DOpenMP_ROOT=#{libomp_root}", *std_cmake_args
36+
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
3237
system "cmake", "--build", "build"
3338
system "cmake", "--install", "build"
3439

3540
# Avoid references to Homebrew shims directory
36-
shim_references = [prefix/"etc/AdaptiveCpp/acpp-core.json"]
37-
inreplace shim_references, Superenv.shims_path/ENV.cxx, ENV.cxx
41+
inreplace prefix/"etc/AdaptiveCpp/acpp-core.json", Superenv.shims_path/ENV.cxx, ENV.cxx
42+
return unless OS.mac?
3843

3944
# we add -I#{libomp_root}/include to default-omp-cxx-flags
4045
inreplace prefix/"etc/AdaptiveCpp/acpp-core.json",
41-
"\"default-omp-cxx-flags\" : \"", "\"default-omp-cxx-flags\" : \"-I#{libomp_root}/include "
46+
"\"default-omp-cxx-flags\" : \"",
47+
"\"default-omp-cxx-flags\" : \"-I#{libomp_root}/include "
4248
end
4349

4450
test do

0 commit comments

Comments
 (0)