Skip to content

Commit 2754d6f

Browse files
committed
libc++
1 parent 9ac566f commit 2754d6f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Formula/llvm/libc++.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
class Libcxx < Formula
22
desc "LLVM C++ standard library"
33
homepage "https://libcxx.llvm.org/"
4-
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.5/llvm-project-19.1.5.src.tar.xz"
5-
sha256 "bd8445f554aae33d50d3212a15e993a667c0ad1b694ac1977f3463db3338e542"
4+
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.0/llvm-project-20.1.0.src.tar.xz"
5+
sha256 "4579051e3c255fb4bb795d54324f5a7f3ef79bd9181e44293d7ee9a7f62aad9a"
66
license "Apache-2.0" => { with: "LLVM-exception" }
77

88
bottle do
99
root_url "https://github.com/paperchalice/homebrew-private/releases/download/libc++-19.1.5"
1010
sha256 cellar: :any, ventura: "8202d54aeb93ffaecd47aec1a9a3b14f2dd3e1c78da52c400ae8bee12b07f652"
1111
end
1212

13-
depends_on "clang" => :build
1413
depends_on "cmake" => :build
1514

1615
depends_on "libc++abi"
@@ -23,19 +22,15 @@ def install
2322
s.gsub! "/usr/share/zoneinfo/", "#{tzdb.share}/zoneinfo/"
2423
end
2524

26-
clang = Formula["clang"]
27-
ENV["CC"] = clang.bin/"clang"
28-
ENV["CXX"] = clang.bin/"clang++"
29-
3025
libunwind = Formula["unwind"]
3126
libcxxabi = Formula["libc++abi"]
3227
rpaths = [rpath, libunwind.opt_lib, libcxxabi.opt_lib]
3328
cmake_args = std_cmake_args+ %W[
29+
-D CMAKE_CXX_STANDARD=26
3430
-D CMAKE_INSTALL_RPATH=#{rpaths.join(";")}
3531
-D LLVM_ENABLE_RUNTIMES=libcxx;libcxxabi;libunwind
3632
-D LIBCXX_INSTALL_MODULES=ON
3733
-D LIBCXX_ENABLE_TIME_ZONE_DATABASE=ON
38-
-D LIBCXX_ABI_UNSTABLE=ON
3934

4035
-S runtimes
4136
-B build

0 commit comments

Comments
 (0)