Skip to content

Commit e65260e

Browse files
committed
Try
1 parent f0ba558 commit e65260e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,28 @@ skip = ["pp38-*"]
1616
enable = ["pypy"]
1717
test-requires = "pytest"
1818
test-command = "pytest {project}/tests"
19+
before-build = "echo CXX=$CXX"
1920

2021
[tool.cibuildwheel.macos]
2122
archs = ["x86_64", "universal2", "arm64"]
2223
before-all = "brew install ccache"
23-
before-build = "echo CC=$CC"
2424
before-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]
2929
archs = ["native"]
3030
before-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"
3534
before-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]]
3938
select = "*-musllinux*"
4039
before-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

Comments
 (0)