summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-10-04 23:17:12 +0000
committerShoaib Meenai <smeenai@fb.com>2017-10-04 23:17:12 +0000
commit8e62812ed318b33c786c5eecf2ab9af091a4fc8e (patch)
tree31b5df19bfcdac96ac406382f10666be4775763c /libcxx/utils
parent7a930923999574d4ce02906ad68aff98c84a7689 (diff)
downloadbcm5719-llvm-8e62812ed318b33c786c5eecf2ab9af091a4fc8e.tar.gz
bcm5719-llvm-8e62812ed318b33c786c5eecf2ab9af091a4fc8e.zip
[libc++] Add site config option for ABI macros
Some ABI macros affect headers, so it's nice to have a site config option for them. Add a LIBCXX_ABI_DEFINES cmake macro to allow specifying a list of ABI macros to define in the site config. The primary design constraint (as discussed with Eric on IRC a while back) was to not have to repeat the ABI macro names in cmake, which only leaves a free-form cmake list as an option. A somewhat unfortunate consequence is that we can't verify that the ABI macros being defined actually exist, though we can at least perform some basic sanity checking, since all the ABI macros begin with _LIBCPP_ABI_. Differential Revision: https://reviews.llvm.org/D36719 llvm-svn: 314946
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 7a8fc4625a7..6f88a3540a1 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -668,7 +668,7 @@ class Configuration(object):
self.config.available_features.add('libcpp-abi-version-v%s'
% feature_macros[m])
continue
- assert m.startswith('_LIBCPP_HAS_') or m == '_LIBCPP_ABI_UNSTABLE'
+ assert m.startswith('_LIBCPP_HAS_') or m.startswith('_LIBCPP_ABI_')
m = m.lower()[1:].replace('_', '-')
self.config.available_features.add(m)
return feature_macros
OpenPOWER on IntegriCloud