fix(watchman)

closes #6384
closes #6433
closes #6499
This commit is contained in:
Jacob Heider 2024-06-24 19:49:56 -04:00 committed by Jacob Heider
parent 34c7312324
commit ad63fd5fd7

View file

@ -19,7 +19,7 @@ dependencies:
pcre.org/v2: ^10 pcre.org/v2: ^10
python.org: ~3.11 python.org: ~3.11
linux: linux:
llvm.org: ~17 # libunwind libcxx.llvm.org: 18 # libunwind/libc++
build: build:
dependencies: dependencies:
@ -30,6 +30,12 @@ build:
facebook.com/mvfst: '>=2023.12.25.0' facebook.com/mvfst: '>=2023.12.25.0'
rust-lang.org: '*' rust-lang.org: '*'
script: 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_CXX_FLAGS="$CXXFLAGS"
- cmake --build build - cmake --build build
- cmake --install build - cmake --install build
@ -45,15 +51,27 @@ build:
- -DBUILD_TESTING=OFF - -DBUILD_TESTING=OFF
- -DENABLE_EDEN_SUPPORT=ON - -DENABLE_EDEN_SUPPORT=ON
- -DWATCHMAN_VERSION_OVERRIDE={{version}} - -DWATCHMAN_VERSION_OVERRIDE={{version}}
- -DPython3_EXECUTABLE={{deps.python.org.prefix}}/bin/python
linux: linux:
CC: clang CC: clang
CXXFLAGS: CXX: clang++
- -fPIC LD: clang
- -latomic
- -Wl,--allow-shlib-undefined
CMAKE_ARGS: CMAKE_ARGS:
- -DCMAKE_C_FLAGS=-fPIC - -DCMAKE_C_FLAGS=-fPIC
- -DCMAKE_EXE_LINKER_FLAGS=-pie 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++
CMAKE_ARGS:
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lc++
provides: provides:
- bin/watchman - bin/watchman