mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(mvfst) (#6159)
* fix(mvfst) closes #6117 * -latomic * force PATH * test flags * path tricks
This commit is contained in:
parent
8c23f941df
commit
4f4ea2fbf7
1 changed files with 18 additions and 0 deletions
|
@ -21,9 +21,13 @@ build:
|
||||||
cmake.org: '*'
|
cmake.org: '*'
|
||||||
linux:
|
linux:
|
||||||
gnu.org/gcc: '*'
|
gnu.org/gcc: '*'
|
||||||
|
gnu.org/binutils: '*'
|
||||||
gnu.org/make: '*'
|
gnu.org/make: '*'
|
||||||
kernel.org/linux-headers: '*'
|
kernel.org/linux-headers: '*'
|
||||||
script:
|
script:
|
||||||
|
# llvm's `as` likes to be first, wrongly
|
||||||
|
- run: export PATH={{deps.gnu.org/binutils.prefix}}/bin:$PATH
|
||||||
|
if: linux
|
||||||
- cmake -S . -B _build $CMAKE_ARGS
|
- cmake -S . -B _build $CMAKE_ARGS
|
||||||
- cmake --build _build
|
- cmake --build _build
|
||||||
- cmake --install _build
|
- cmake --install _build
|
||||||
|
@ -39,6 +43,9 @@ build:
|
||||||
- -DBUILD_TESTS=OFF
|
- -DBUILD_TESTS=OFF
|
||||||
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||||
linux:
|
linux:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
LD: gcc
|
||||||
CMAKE_ARGS:
|
CMAKE_ARGS:
|
||||||
- -DCMAKE_CXX_FLAGS=-fPIC
|
- -DCMAKE_CXX_FLAGS=-fPIC
|
||||||
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
|
||||||
|
@ -52,8 +59,19 @@ test:
|
||||||
curl.se: '*'
|
curl.se: '*'
|
||||||
linux:
|
linux:
|
||||||
gnu.org/gcc: '*'
|
gnu.org/gcc: '*'
|
||||||
|
gnu.org/binutils: '*'
|
||||||
gnu.org/make: '*'
|
gnu.org/make: '*'
|
||||||
|
env:
|
||||||
|
linux:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
LD: gcc
|
||||||
|
CXXFLAGS: -Wl,-latomic,-lrt
|
||||||
script:
|
script:
|
||||||
|
# llvm's `as` likes to be first, wrongly
|
||||||
|
- run: export PATH={{deps.gnu.org/binutils.prefix}}/bin:$PATH
|
||||||
|
if: linux
|
||||||
|
|
||||||
# The best test we know is to build the echo client/server sample from the source.
|
# The best test we know is to build the echo client/server sample from the source.
|
||||||
- PADDED_VERSION=$(echo "{{version}}" | gawk -F. '{printf "%04d.%02d.%02d.%02d\n", $1, $2, $3, $4}')
|
- PADDED_VERSION=$(echo "{{version}}" | gawk -F. '{printf "%04d.%02d.%02d.%02d\n", $1, $2, $3, $4}')
|
||||||
- curl -L "https://github.com/facebook/mvfst/archive/v$PADDED_VERSION.tar.gz" | tar -xz --strip-components=1
|
- curl -L "https://github.com/facebook/mvfst/archive/v$PADDED_VERSION.tar.gz" | tar -xz --strip-components=1
|
||||||
|
|
Loading…
Reference in a new issue