-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b111558
commit c17cf93
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class Node < Formula | ||
desc "Platform built on V8 to build network applications" | ||
homepage "https://nodejs.org/" | ||
url "https://nodejs.org/dist/v23.7.0/node-v23.7.0.tar.xz" | ||
sha256 "8de192ef2fee2ee8a230dd8d0e9aee182ee9c9856ccdb5fd95188abe84f77242" | ||
url "https://nodejs.org/dist/v23.9.0/node-v23.9.0.tar.xz" | ||
sha256 "c6b420bedbb049a6538c33af28abaf89011ccc879f0f0f81791675263c238f97" | ||
license "MIT" | ||
head "https://github.com/nodejs/node.git", branch: "main" | ||
|
||
|
@@ -33,14 +33,13 @@ class Node < Formula | |
uses_from_macos "zlib" | ||
|
||
on_macos do | ||
depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1100 | ||
depends_on "llvm" => :build if DevelopmentTools.clang_build_version <= 1500 | ||
end | ||
|
||
# https://github.com/swiftlang/llvm-project/commit/94461822c75d5080bf648f86552f7a59b76905c9 | ||
fails_with :clang do | ||
build 1100 | ||
cause <<~EOS | ||
error: calling a private constructor of class 'v8::internal::(anonymous namespace)::RegExpParserImpl<uint8_t>' | ||
EOS | ||
build 1500 | ||
cause "needs std::ranges::elements_view" | ||
end | ||
|
||
# We track major/minor from upstream Node releases. | ||
|
@@ -51,7 +50,7 @@ class Node < Formula | |
end | ||
|
||
def install | ||
Check failure on line 52 in Formula/n/node.rb
|
||
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1100) | ||
ENV.llvm_clang if OS.mac? && DevelopmentTools.clang_build_version <= 1500 | ||
|
||
# The new linker crashed during LTO due to high memory usage. | ||
ENV.append "LDFLAGS", "-Wl,-ld_classic" if DevelopmentTools.clang_build_version >= 1500 | ||
|