Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(watchman) #6389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
29 changes: 9 additions & 20 deletions projects/facebook.com/watchman/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dependencies:
pcre.org/v2: ^10
python.org: ~3.11
linux:
libcxx.llvm.org: 18 # libunwind/libc++
libcxx.llvm.org: 18 # libunwind
gnu.org/gcc/libstdcxx: 13

build:
dependencies:
Expand All @@ -29,14 +30,16 @@ build:
google.com/googletest: '*'
facebook.com/mvfst: '>=2023.12.25.0'
rust-lang.org: '*'
linux:
gnu.org/gcc: 13
script:
# version/path mismatch
- run: |
if test -f Cargo.toml; then
sed -i 's/watchman_client = { version = ".*", path/watchman_client = { path/' Cargo.toml
fi
working-directory: watchman/cli
- cmake -S . -B build $CMAKE_ARGS -DCMAKE_CXX_FLAGS="$CXXFLAGS"
- cmake -S . -B build $CMAKE_ARGS -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS"
- cmake --build build
- cmake --install build
- mkdir -p {{prefix}}/var/run/watchman
Expand All @@ -53,25 +56,11 @@ build:
- -DWATCHMAN_VERSION_OVERRIDE={{version}}
- -DPython3_EXECUTABLE={{deps.python.org.prefix}}/bin/python
linux:
CC: clang
CXX: clang++
LD: clang
CMAKE_ARGS:
- -DCMAKE_C_FLAGS=-fPIC
linux/x86-64:
CXXFLAGS:
- -fPIC
- -Wl,--allow-shlib-undefined
CMAKE_ARGS:
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
linux/aarch64:
CXXFLAGS:
- -fPIC
- -Wl,--allow-shlib-undefined
- -cxx-isystem {{deps.libcxx.llvm.org.prefix}}/include/c++/v1
- -stdlib=libc++
CC: gcc
CXX: g++
LD: gcc
CMAKE_ARGS:
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lc++
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lstdc++,-latomic

provides:
- bin/watchman
Expand Down
Loading