[libcxx-commits] [libcxx] fd1c064 - [libcxx] Add targets to available features.
Daniel Kiss via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 29 06:04:18 PDT 2020
Author: Daniel Kiss
Date: 2020-10-29T14:04:11+01:00
New Revision: fd1c064845e598387b33ad4f548fde141f44728e
URL: https://github.com/llvm/llvm-project/commit/fd1c064845e598387b33ad4f548fde141f44728e
DIFF: https://github.com/llvm/llvm-project/commit/fd1c064845e598387b33ad4f548fde141f44728e.diff
LOG: [libcxx] Add targets to available features.
This patch add the target-* (x86_64-*) as used elsewhere in llvm.
Reviewed By: #libc, #libc_abi, ldionne
Differential Revision: https://reviews.llvm.org/D88027
Added:
Modified:
libcxx/utils/libcxx/test/config.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 0d21aa17afd2..cb94e3c26f4c 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -266,6 +266,21 @@ def configure_features(self):
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
More information about the libcxx-commits
mailing list