@@ -16,29 +16,28 @@ skip = ["pp38-*"]
1616enable = [" pypy" ]
1717test-requires = " pytest"
1818test-command = " pytest {project}/tests"
19+ before-build = " echo CXX=$CXX"
1920
2021[tool .cibuildwheel .macos ]
2122archs = [" x86_64" , " universal2" , " arm64" ]
2223before-all = " brew install ccache"
23- before-build = " echo CC=$CC"
2424before-test = " ccache --show-stats"
25- environment = {CC = " /opt/homebrew/opt/ccache/libexec/cc " , CFLAGS = " -g0" }
25+ environment = {CXX = " /opt/homebrew/opt/ccache/libexec/c++ " , CFLAGS = " -g0" }
2626
2727
2828[tool .cibuildwheel .linux ]
2929archs = [" native" ]
3030before-all = [
3131 " yum install -y ccache" ,
32- " ln -s $(which ccache) /usr/lib64/ccache/gcc " ,
32+ " ln -s $(which ccache) /usr/lib64/ccache/g++ " ,
3333]
34- before-build = " echo CC=$CC"
3534before-test = " ccache --show-stats"
36- environment = {CC = " /usr/lib64/ccache/gcc " , CFLAGS = " -g0" }
35+ environment = {CXX = " /usr/lib64/ccache/g++ " , CFLAGS = " -g0" }
3736
3837[[tool .cibuildwheel .overrides ]]
3938select = " *-musllinux*"
4039before-all = " apk add ccache"
41- environment = {CC = " /usr/lib/ccache/bin/gcc " }
40+ environment = {CXX = " /usr/lib/ccache/bin/g++ " }
4241
4342# Installing ccache fails on manylinux aarch64 images
4443[[tool .cibuildwheel .overrides ]]
0 commit comments