Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
12 changes: 7 additions & 5 deletions Formula/n/node.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class Node < Formula
desc "Open-source, cross-platform JavaScript runtime environment"
homepage "https://nodejs.org/"
url "https://nodejs.org/dist/v25.9.0/node-v25.9.0.tar.xz"
sha256 "8f78af3ee55fb278668b5f801db58bd1a38ea161318eb5ce2128ddbc9cd813aa"
url "https://nodejs.org/dist/v26.0.0/node-v26.0.0.tar.xz"
sha256 "fcb5e5c06a5c2ec9e669801248657aafaa2291f8760dac7bfb639f878318c592"
license "MIT"
revision 3
compatibility_version 1
head "https://github.com/nodejs/node.git", branch: "main"

Expand Down Expand Up @@ -49,6 +48,7 @@ class Node < Formula
end

on_linux do
depends_on "llvm" => :build if DevelopmentTools.gcc_version < 13
depends_on "zlib-ng-compat"
end

Expand All @@ -63,8 +63,8 @@ class Node < Formula
# https://github.com/nodejs/node/blob/main/BUILDING.md#supported-toolchains
# https://github.com/ada-url/ada?tab=readme-ov-file#requirements
fails_with :gcc do
version "11"
cause "needs GCC 12 or newer"
version "12"
cause "needs GCC 13 or newer"
end

# We track major/minor from upstream Node releases.
Expand All @@ -82,6 +82,8 @@ class Node < Formula
end

def install
ENV.llvm_clang if OS.linux? && deps.map(&:name).any?("llvm")

# Backport fix for bundled LIEF's bundled spdlog's bundled fmt.
# Should be fixed when new LIEF version with following commit is released and used by node:
# https://github.com/lief-project/LIEF/commit/710637216b1f6f19569002d62e43fca201b9d91c
Expand Down
Loading