[libcxx-commits] [PATCH] D88027: [libcxx] Add targets to available features.
Daniel Kiss via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 12 03:58:47 PDT 2020
danielkiss updated this revision to Diff 297544.
danielkiss retitled this revision from "[libcxx] Add platforms and targets to available features." to "[libcxx] Add targets to available features.".
danielkiss edited the summary of this revision.
Herald added subscribers: pengfei, arichardson.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88027/new/
https://reviews.llvm.org/D88027
Files:
libcxx/utils/libcxx/test/config.py
Index: libcxx/utils/libcxx/test/config.py
===================================================================
--- libcxx/utils/libcxx/test/config.py
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88027.297544.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201012/4c985b38/attachment-0001.bin>
More information about the libcxx-commits
mailing list