Use __config_site when building libc++. Also cleanup ABI versioning doc
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@250261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -444,7 +444,9 @@ class Configuration(object):
|
||||
def configure_compile_flags_abi_version(self):
|
||||
abi_version = self.get_lit_conf('abi_version', '').strip()
|
||||
abi_unstable = self.get_lit_bool('abi_unstable')
|
||||
if abi_version:
|
||||
# Only add the ABI version when it is non-default.
|
||||
# FIXME(EricWF): Get the ABI version from the "__config_site".
|
||||
if abi_version and abi_version != '1':
|
||||
self.cxx.compile_flags += ['-D_LIBCPP_ABI_VERSION=' + abi_version]
|
||||
if abi_unstable:
|
||||
self.config.available_features.add('libcpp-abi-unstable')
|
||||
|
Reference in New Issue
Block a user