Something went wrong. Try again.
xburner is an experimental HTTP and gRPC load generator written in Zig.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233#!/bin/shset -eu
if [ "$#" -ne 3 ]; then printf >&2 'usage: %s <source> <header> <output>\n' "$0" exit 2fi
SOURCE_PATH=$1HEADER_PATH=$2OUTPUT_PATH=$3CXX_BIN=${CXX:-c++}
if [ ! -f "${SOURCE_PATH}" ]; then printf >&2 'missing source file: %s\n' "${SOURCE_PATH}" exit 1fiif [ ! -f "${HEADER_PATH}" ]; then printf >&2 'missing header file: %s\n' "${HEADER_PATH}" exit 1fi
mkdir -p "$(dirname "${OUTPUT_PATH}")"
# Build the Linux shim with the distro compiler so the shared object owns the# C++ ABI boundary and resolves libstdc++/grpc++ itself.# shellcheck disable=SC2046exec "${CXX_BIN}" -std=c++17 -shared -fPIC \ $(pkg-config --cflags grpc++) \ "${SOURCE_PATH}" \ -o "${OUTPUT_PATH}" \ $(pkg-config --libs grpc++)