building extension on MacOS with g++ #3200
duanhuaiyu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have installed gcc-11 on my Mac. When I tried to build an extension using the command
CC=gcc-11 CXX=g++-11 pip install -e .
, I received the errorgcc-11: error: unrecognized command-line option '-stdlib=libc++'
. It seems thatpybind11.setup_helpers.Pybind11Extension
always adds the flag-stdlib=libc++
if the OS is Darwin. Maybe it should also check the compiler?Beta Was this translation helpful? Give feedback.
All reactions