diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -266,6 +266,21 @@ self.config.available_features.add('libcxx_gdb') self.cxx.libcxx_gdb = libcxx_gdb + target_triple = getattr(self.config, 'target_triple', None) + if target_triple: + if re.match(r'^x86_64.*-apple', target_triple): + self.config.available_features.add('x86_64-apple') + if re.match(r'^x86_64.*-linux', target_triple): + self.config.available_features.add('x86_64-linux') + if re.match(r'^i.86.*', target_triple): + self.config.available_features.add('target-x86') + elif re.match(r'^x86_64.*', target_triple): + self.config.available_features.add('target-x86_64') + elif re.match(r'^aarch64.*', target_triple): + self.config.available_features.add('target-aarch64') + elif re.match(r'^arm.*', target_triple): + self.config.available_features.add('target-arm') + def configure_compile_flags(self): self.configure_default_compile_flags() # Configure extra flags