File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1265,8 +1265,21 @@ def _discriminants(self):
1265
1265
self ._toolchain_discriminants ())
1266
1266
1267
1267
def _base_discriminants (self ):
1268
+
1269
+ # List of toolchain discriminants for which we don't want to run
1270
+ # C++ tests, due to lack of compatibility with modern hosts.
1271
+ unsupported_cpp_toolchains = ["7.1.2" , "5.04a1" ]
1272
+
1268
1273
result = ['ALL' ] + self .env .discriminants
1269
- if which (self .tool ('g++' )):
1274
+
1275
+ toolchain_discrs = self ._toolchain_discriminants ()
1276
+
1277
+ # Only enable C++ tests if we have a C++ compiler that is not
1278
+ # blacklisted.
1279
+ if which (self .tool ('g++' )) and (
1280
+ not toolchain_discrs
1281
+ or toolchain_discrs [0 ] not in unsupported_cpp_toolchains
1282
+ ):
1270
1283
result .append ('C++' )
1271
1284
1272
1285
# Add a discriminant to track the current trace mode
You can’t perform that action at this time.
0 commit comments