From e0db2e3afa48cf8fe6d6b97bb6f563321cc5f202 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 6 Nov 2022 17:17:28 +0100 Subject: [PATCH] chore(wheels): link libstdc++/libgcc statically on musllinux This reduces the size of the wheels & installed binaries --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b895c20..d3ddc9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,5 +32,9 @@ before-all = [ 'ninja --version', ] +[[tool.cibuildwheel.overrides]] +select = "*-musllinux_*" +environment = { LDFLAGS = "-static-libstdc++ -static-libgcc" } + [tool.isort] profile = "black"