Skip to content

Commit

Permalink
build_ext: Support C++ for RPYBUILD_CC_LAUNCHER (#244)
Browse files Browse the repository at this point in the history
setuptools v72.2.0 added realer support for C++, which includes
understanding the C++ compiler usually has a different name.

pypa/setuptools@2c93711
  • Loading branch information
auscompgeek authored Dec 31, 2024
1 parent d6258c3 commit f9b4423
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions robotpy_build/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def build_extensions(self):
if cc_launcher:
self.compiler.compiler.insert(0, cc_launcher)
self.compiler.compiler_so.insert(0, cc_launcher)
try:
# setuptools v72.2.0 added C++ support
self.compiler.compiler_so_cxx.insert(0, cc_launcher)
except AttributeError:
pass
# compiler_cxx is only used for linking, so we don't mess with it
# .. distutils is so weird
# self.compiler.compiler_cxx.insert(0, cc_launcher)
Expand Down

0 comments on commit f9b4423

Please sign in to comment.