|
1 | 1 | class Adaptivecpp < Formula |
2 | 2 | desc "SYCL and C++ standard parallelism for CPUs and GPUs" |
3 | | - homepage "https://github.com/AdaptiveCpp/AdaptiveCpp" |
| 3 | + homepage "https://adaptivecpp.github.io/" |
4 | 4 | url "https://github.com/AdaptiveCpp/AdaptiveCpp/archive/refs/tags/v24.10.0.tar.gz" |
5 | 5 | sha256 "3bcd94eee41adea3ccc58390498ec9fd30e1548af5330a319be8ce3e034a6a0b" |
6 | 6 | license "BSD-2-Clause" |
| 7 | + revision 1 |
7 | 8 | head "https://github.com/AdaptiveCpp/AdaptiveCpp.git", branch: "develop" |
8 | 9 |
|
9 | 10 | 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" |
17 | 18 | end |
18 | 19 |
|
19 | 20 | depends_on "cmake" => :build |
20 | 21 | depends_on "boost" |
21 | | - depends_on "llvm" |
| 22 | + depends_on "llvm@19" |
22 | 23 | uses_from_macos "python" |
23 | 24 |
|
24 | 25 | on_macos do |
25 | 26 | depends_on "libomp" |
26 | 27 | end |
27 | 28 |
|
28 | 29 | 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 |
30 | 35 |
|
31 | | - system "cmake", "-S", ".", "-B", "build", "-DOpenMP_ROOT=#{libomp_root}", *std_cmake_args |
| 36 | + system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args |
32 | 37 | system "cmake", "--build", "build" |
33 | 38 | system "cmake", "--install", "build" |
34 | 39 |
|
35 | 40 | # 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? |
38 | 43 |
|
39 | 44 | # we add -I#{libomp_root}/include to default-omp-cxx-flags |
40 | 45 | 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 " |
42 | 48 | end |
43 | 49 |
|
44 | 50 | test do |
|
0 commit comments