fix(cmake): remove extra = in flto assignment#5207
Conversation
|
FYI, as a way to work around this, you can use CMake instead of our custom flags by defining |
|
@henryiii I saw the note about |
|
Sure, just wanted to make sure you weren't stuck until the next release. Really hoping CPython 3.13b3 comes out soon so we can move to PyMutex for 3.13 before release, but we might need the GCC 9 fix sooner. I think this bug has been around for a while. Don't think we've touched this too much recently. |
|
Thanks, by the way, if I didn't say so before. :) |
|
You're very welcome. Happy to contribute fixes and reduce your burden where I can (in contrast to just raising an issue). Thank you for the prompt response. Pybind is in good hands. |
Description
When compiling a library with Pybind11 v2.13.1 on MacOS with Clang, CMake throws the error
This is due to a stray
=when definingflto=in the Clang case withinpybind11Common.cmake.This PR fixes this issue by removing the extra
=, and after that the library compiles normally.Suggested changelog entry: