mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
34c7312324
commit
ad63fd5fd7
1 changed files with 24 additions and 6 deletions
|
@ -19,7 +19,7 @@ dependencies:
|
|||
pcre.org/v2: ^10
|
||||
python.org: ~3.11
|
||||
linux:
|
||||
llvm.org: ~17 # libunwind
|
||||
libcxx.llvm.org: 18 # libunwind/libc++
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
|
@ -30,6 +30,12 @@ build:
|
|||
facebook.com/mvfst: '>=2023.12.25.0'
|
||||
rust-lang.org: '*'
|
||||
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 --build build
|
||||
- cmake --install build
|
||||
|
@ -45,15 +51,27 @@ build:
|
|||
- -DBUILD_TESTING=OFF
|
||||
- -DENABLE_EDEN_SUPPORT=ON
|
||||
- -DWATCHMAN_VERSION_OVERRIDE={{version}}
|
||||
- -DPython3_EXECUTABLE={{deps.python.org.prefix}}/bin/python
|
||||
linux:
|
||||
CC: clang
|
||||
CXXFLAGS:
|
||||
- -fPIC
|
||||
- -latomic
|
||||
- -Wl,--allow-shlib-undefined
|
||||
CXX: clang++
|
||||
LD: clang
|
||||
CMAKE_ARGS:
|
||||
- -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:
|
||||
- bin/watchman
|
||||
|
|
Loading…
Reference in a new issue