|
@@ -1143,6 +1143,18 @@ class Configuration(object):
|
|
|
self.lit_config.note(
|
|
|
"computed target_triple as: %r" % self.config.target_triple)
|
|
|
|
|
|
+ # Throwing bad_optional_access, bad_variant_access and bad_any_cast is
|
|
|
+ # supported starting in macosx10.14.
|
|
|
+ if name == 'macosx' and version in ('10.%s' % v for v in range(7, 14)):
|
|
|
+ self.config.available_features.add('dylib-has-no-bad_optional_access')
|
|
|
+ self.lit_config.note("throwing bad_optional_access is not supported by the deployment target")
|
|
|
+
|
|
|
+ self.config.available_features.add('dylib-has-no-bad_variant_access')
|
|
|
+ self.lit_config.note("throwing bad_variant_access is not supported by the deployment target")
|
|
|
+
|
|
|
+ self.config.available_features.add('dylib-has-no-bad_any_cast')
|
|
|
+ self.lit_config.note("throwing bad_any_cast is not supported by the deployment target")
|
|
|
+
|
|
|
def configure_env(self):
|
|
|
self.target_info.configure_env(self.exec_env)
|
|
|
|