fix(fb303) (#6215)

* fix(fb.other)

* -latomic

* split

* add to test too

* ordering?

* invocation?

* clang
This commit is contained in:
Jacob Heider 2024-05-23 12:05:00 -04:00 committed by GitHub
parent 0650366adf
commit 94632110b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ dependencies:
facebook.com/wangle: '*' facebook.com/wangle: '*'
facebook.com/folly: '*' facebook.com/folly: '*'
facebook.com/fbthrift: '>=2023.12.18.0' facebook.com/fbthrift: '>=2023.12.18.0'
fmt.dev: ^9 fmt.dev: ^10
gflags.github.io: ^2.2.2 gflags.github.io: ^2.2.2
google.com/glog: ^0.6 google.com/glog: ^0.6
libsodium.org: ^1.0.19 libsodium.org: ^1.0.19
@ -37,13 +37,26 @@ build:
- -DPYTHON_EXTENSIONS=OFF - -DPYTHON_EXTENSIONS=OFF
- -DBUILD_SHARED_LIBS=ON - -DBUILD_SHARED_LIBS=ON
linux: linux:
CC: clang
CXX: clang++
LD: clang
CMAKE_ARGS: CMAKE_ARGS:
- -DCMAKE_C_FLAGS=-fPIC - -DCMAKE_C_FLAGS=-fPIC
- -DCMAKE_CXX_FLAGS=-fPIC - -DCMAKE_CXX_FLAGS=-fPIC
- -DCMAKE_EXE_LINKER_FLAGS=-pie linux/x86-64:
CMAKE_ARGS:
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
linux/aarch64:
CMAKE_ARGS:
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-latomic
test: test:
dependencies: dependencies:
boost.org: ^1.84 boost.org: ^1.84
script: script:
- c++ -std=c++17 test.cpp -o test -lfb303_thrift_cpp -lfolly -lglog -lthriftprotocol -lthriftcpp2 -ldl -lboost_context - $CXX -std=c++17 test.cpp -o test $EXTRA_LIBS -lfb303_thrift_cpp -lfolly -lglog -lthriftprotocol -lthriftcpp2 -ldl -lboost_context
- ./test | grep 'BaseService' - ./test | grep 'BaseService'
env:
CXX: c++
linux:
CXX: clang++
EXTRA_LIBS: -latomic