Skip to content

Commit 8cd2dc5

Browse files
ZhongRuoyucarlocab
andcommitted
llvm 19.1.5
Also: Let's create config files that target `aarch64` too. This is used as the target by Python. See Homebrew/discussions#5778. Also, use `-isysroot` instead of `--sysroot` so that our choice can be overridden by setting `SDKROOT`. Fixes #197277. Co-authored-by: Carlo Cabrera <github@carlo.cab>
1 parent b1c8303 commit 8cd2dc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Formula/l/llvm.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Llvm < Formula
66
head "https://github.com/llvm/llvm-project.git", branch: "main"
77

88
stable do
9-
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.4/llvm-project-19.1.4.src.tar.xz"
10-
sha256 "3aa2d2d2c7553164ad5c6f3b932b31816e422635e18620c9349a7da95b98d811"
9+
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.5/llvm-project-19.1.5.src.tar.xz"
10+
sha256 "bd8445f554aae33d50d3212a15e993a667c0ad1b694ac1977f3463db3338e542"
1111

1212
# Backport relative `CLANG_CONFIG_FILE_SYSTEM_DIR` patch.
1313
# Remove in LLVM 20.
@@ -488,7 +488,7 @@ def install
488488
def write_config_files(macos_version, kernel_version, arch)
489489
clang_config_file_dir.mkpath
490490

491-
arches = Set.new([:arm64, :x86_64])
491+
arches = Set.new([:arm64, :x86_64, :aarch64])
492492
arches << arch
493493
sysroot = if macos_version >= "10.14" || (macos_version.blank? && kernel_version.blank?)
494494
"#{MacOS::CLT::PKG_PATH}/SDKs/MacOSX#{macos_version}.sdk"
@@ -503,7 +503,7 @@ def write_config_files(macos_version, kernel_version, arch)
503503
arches.each do |target_arch|
504504
config_file = "#{target_arch}-apple-#{system}#{version}.cfg"
505505
(clang_config_file_dir/config_file).atomic_write <<~CONFIG
506-
--sysroot=#{sysroot}
506+
-isysroot #{sysroot}
507507
CONFIG
508508
end
509509
end

0 commit comments

Comments
 (0)