Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit415f816

Browse files
carlocabBrewTestBot
authored andcommitted
watchman: enable eden support
Eden support allows watchman to use a virtual file system thatsignificantly speeds up watching large repositories (e.g.homebrew/core).This is enabled in a default Watchman build. We previously disabled thisbecause it required dependencies that we did not package.I've omitted the revision bump because this will get another versionbump next week, and restricted this change only to macOS since it leadsto a build failure on Linux.ClosesHomebrew#94819.Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent07f0645 commit415f816

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

‎Formula/watchman.rb‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ class Watchman < Formula
3232
depends_on"pcre"
3333
depends_on"python@3.10"
3434

35+
# Dependencies for Eden support. Enabling Eden support fails to build on Linux.
36+
on_macosdo
37+
depends_on"cpptoml"=>:build
38+
depends_on"fb303"
39+
end
40+
3541
on_linuxdo
3642
depends_on"gcc"
3743
end
@@ -41,11 +47,15 @@ class Watchman < Formula
4147
definstall
4248
# Fix build failure on Linux. Borrowed from Fedora:
4349
# https://src.fedoraproject.org/rpms/watchman/blob/rawhide/f/watchman.spec#_70
44-
inreplace"CMakeLists.txt",/^t_test/,"#t_test"ifOS.linux?
50+
inreplace"CMakeLists.txt",/^t_test/,"#t_test"ifOS.linux?
4551

52+
# NOTE: Setting `BUILD_SHARED_LIBS=ON` will generate DSOs for Eden libraries.
53+
# These libraries are not part of any install targets and have the wrong
54+
# RPATHs configured, so will need to be installed and relocated manually
55+
# if they are built as shared libraries. They're not used by any other
56+
# formulae, so let's link them statically instead. This is done by default.
4657
system"cmake","-S",".","-B","build",
47-
"-DBUILD_SHARED_LIBS=ON",
48-
"-DENABLE_EDEN_SUPPORT=OFF",
58+
"-DENABLE_EDEN_SUPPORT=#{OS.mac?}",
4959
"-DWATCHMAN_VERSION_OVERRIDE=#{version}",
5060
"-DWATCHMAN_BUILDINFO_OVERRIDE=#{tap.user}",
5161
"-DWATCHMAN_STATE_DIR=#{var}/run/watchman",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp