Skip to content

Commit f9b4423

Browse files
authored
build_ext: Support C++ for RPYBUILD_CC_LAUNCHER (#244)
setuptools v72.2.0 added realer support for C++, which includes understanding the C++ compiler usually has a different name. pypa/setuptools@2c93711
1 parent d6258c3 commit f9b4423

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

robotpy_build/command/build_ext.py

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ def build_extensions(self):
107107
if cc_launcher:
108108
self.compiler.compiler.insert(0, cc_launcher)
109109
self.compiler.compiler_so.insert(0, cc_launcher)
110+
try:
111+
# setuptools v72.2.0 added C++ support
112+
self.compiler.compiler_so_cxx.insert(0, cc_launcher)
113+
except AttributeError:
114+
pass
110115
# compiler_cxx is only used for linking, so we don't mess with it
111116
# .. distutils is so weird
112117
# self.compiler.compiler_cxx.insert(0, cc_launcher)

0 commit comments

Comments
 (0)