jupp0r / prometheus-cpp

Prometheus Client Library for Modern C++
Other
924 stars 326 forks source link

Added two cmake cross compile toolchain file. #707

Closed shiptux closed 4 months ago

shiptux commented 6 months ago

This commit includes RISC-V and AArch64 cross-compile support for Prometheus-cpp.

Full steps:


git submodule init
git submodule update

mkdir aarch64_build
cd aarch64_build

# run cmake with cross-compile toolchain
cmake .. -DBUILD_SHARED_LIBS=ON -DENABLE_PUSH=OFF -DENABLE_COMPRESSION=OFF -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-aarch64.cmake

# build
cmake --build . --parallel 4

# test
Test should runs on QEMU. WIP
gjasny commented 4 months ago

Hello,

prometheus-cpp is not an application but a library. Because all C++ components should be built with the same toolchain, I don't believe that prometheus-cpp is the proper place to store those.

Thanks, Gregor