setup_helpers.py
14.8 KB
-
fix: prepend Pybind11Extension flags rather than appending them. (#2808) · e8c4f543
This allows users to set e.g. `extra_compile_args=["-g"]` (temporarily, for debugging purposes) and not have that get overridden by Pybind11Extension's default `-g0`. In order to minimize "order inversion" (not that it really matters, though) I chose to collect all flags and add them at once (hence the dropping of `*args`). I also dropped flag deduplication, which seems unneeded.
Antony Lee committed