mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-01 18:12:44 +00:00
Rename system_lib -> system_cxx_lib. NFC
llvm-svn: 226061
This commit is contained in:
parent
dba7329ebb
commit
eb7b5e74d4
@ -19,11 +19,11 @@ class Configuration(object):
|
||||
self.cxx = None
|
||||
self.src_root = None
|
||||
self.obj_root = None
|
||||
self.libcxx_library_root = None
|
||||
self.cxx_library_root = None
|
||||
self.env = {}
|
||||
self.compile_flags = []
|
||||
self.link_flags = []
|
||||
self.use_system_lib = False
|
||||
self.use_system_cxx_lib = False
|
||||
self.use_clang_verify = False
|
||||
self.use_ccache = False
|
||||
self.long_tests = None
|
||||
@ -56,8 +56,8 @@ class Configuration(object):
|
||||
self.configure_triple()
|
||||
self.configure_src_root()
|
||||
self.configure_obj_root()
|
||||
self.configure_library_root()
|
||||
self.configure_use_system_lib()
|
||||
self.configure_cxx_library_root()
|
||||
self.configure_use_system_cxx_lib()
|
||||
self.configure_use_clang_verify()
|
||||
self.configure_ccache()
|
||||
self.configure_env()
|
||||
@ -143,21 +143,21 @@ class Configuration(object):
|
||||
def configure_obj_root(self):
|
||||
self.obj_root = self.get_lit_conf('libcxx_obj_root', self.src_root)
|
||||
|
||||
def configure_library_root(self):
|
||||
self.libcxx_library_root = self.get_lit_conf('libcxx_library_root',
|
||||
self.obj_root)
|
||||
def configure_cxx_library_root(self):
|
||||
self.cxx_library_root = self.get_lit_conf('cxx_library_root',
|
||||
self.obj_root)
|
||||
|
||||
def configure_use_system_lib(self):
|
||||
def configure_use_system_cxx_lib(self):
|
||||
# This test suite supports testing against either the system library or
|
||||
# the locally built one; the former mode is useful for testing ABI
|
||||
# compatibility between the current headers and a shipping dynamic
|
||||
# library.
|
||||
self.use_system_lib = self.get_lit_bool('use_system_lib')
|
||||
if self.use_system_lib is None:
|
||||
self.use_system_cxx_lib = self.get_lit_bool('use_system_cxx_lib')
|
||||
if self.use_system_cxx_lib is None:
|
||||
# Default to testing against the locally built libc++ library.
|
||||
self.use_system_lib = False
|
||||
self.use_system_cxx_lib = False
|
||||
self.lit_config.note(
|
||||
"inferred use_system_lib as: %r" % self.use_system_lib)
|
||||
"inferred use_system_cxx_lib as: %r" % self.use_system_cxx_lib)
|
||||
|
||||
def configure_use_clang_verify(self):
|
||||
'''If set, run clang with -verify on failing tests.'''
|
||||
@ -228,12 +228,12 @@ class Configuration(object):
|
||||
locale.setlocale(locale.LC_ALL, default_locale)
|
||||
|
||||
# Write an "available feature" that combines the triple when
|
||||
# use_system_lib is enabled. This is so that we can easily write XFAIL
|
||||
# use_system_cxx_lib is enabled. This is so that we can easily write XFAIL
|
||||
# markers for tests that are known to fail with versions of libc++ as
|
||||
# were shipped with a particular triple.
|
||||
if self.use_system_lib:
|
||||
if self.use_system_cxx_lib:
|
||||
self.config.available_features.add(
|
||||
'with_system_lib=%s' % self.config.target_triple)
|
||||
'with_system_cxx_lib=%s' % self.config.target_triple)
|
||||
|
||||
# Some linux distributions have different locale data than others.
|
||||
# Insert the distributions name and name-version into the available
|
||||
@ -337,15 +337,15 @@ class Configuration(object):
|
||||
self.lit_config.fatal(
|
||||
"libcxx_library='%s' is not a valid file." %
|
||||
libcxx_library)
|
||||
if self.use_system_lib:
|
||||
if self.use_system_cxx_lib:
|
||||
self.lit_config.fatal(
|
||||
"Conflicting options: 'libcxx_library' cannot be used "
|
||||
"with 'use_system_lib=true'")
|
||||
"with 'use_system_cxx_lib=true'")
|
||||
self.link_flags += ['-Wl,-rpath,' +
|
||||
os.path.dirname(libcxx_library)]
|
||||
elif not self.use_system_lib:
|
||||
self.link_flags += ['-L' + self.libcxx_library_root,
|
||||
'-Wl,-rpath,' + self.libcxx_library_root]
|
||||
elif not self.use_system_cxx_lib:
|
||||
self.link_flags += ['-L' + self.cxx_library_root,
|
||||
'-Wl,-rpath,' + self.cxx_library_root]
|
||||
# Configure ABI library paths.
|
||||
abi_library_path = self.get_lit_conf('abi_library_path', '')
|
||||
if abi_library_path:
|
||||
@ -471,10 +471,10 @@ class Configuration(object):
|
||||
"inferred target_triple as: %r" % self.config.target_triple)
|
||||
|
||||
def configure_env(self):
|
||||
if sys.platform == 'darwin' and not self.use_system_lib:
|
||||
if sys.platform == 'darwin' and not self.use_system_cxx_lib:
|
||||
libcxx_library = self.get_lit_conf('libcxx_library')
|
||||
if libcxx_library:
|
||||
libcxx_library_root = os.path.dirname(libcxx_library)
|
||||
cxx_library_root = os.path.dirname(libcxx_library)
|
||||
else:
|
||||
libcxx_library_root = self.libcxx_library_root
|
||||
self.env['DYLD_LIBRARY_PATH'] = libcxx_library_root
|
||||
cxx_library_root = self.cxx_library_root
|
||||
self.env['DYLD_LIBRARY_PATH'] = cxx_library_root
|
||||
|
@ -3,7 +3,7 @@ config.cxx_under_test = "@LIBCXX_COMPILER@"
|
||||
config.std = "@LIBCXX_STD_VERSION@"
|
||||
config.libcxx_src_root = "@LIBCXX_SOURCE_DIR@"
|
||||
config.libcxx_obj_root = "@LIBCXX_BINARY_DIR@"
|
||||
config.libcxx_library_root = "@LIBCXX_LIBRARY_DIR@"
|
||||
config.cxx_library_root = "@LIBCXX_LIBRARY_DIR@"
|
||||
config.enable_exceptions = "@LIBCXX_ENABLE_EXCEPTIONS@"
|
||||
config.enable_rtti = "@LIBCXX_ENABLE_RTTI@"
|
||||
config.enable_shared = "@LIBCXX_ENABLE_SHARED@"
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <locale>
|
||||
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
// charT tolower(charT) const;
|
||||
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// XFAIL: linux
|
||||
|
||||
#include <locale>
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
// const charT* tolower(charT* low, const charT* high) const;
|
||||
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// XFAIL: linux
|
||||
|
||||
#include <locale>
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
// charT toupper(charT) const;
|
||||
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// XFAIL: linux
|
||||
|
||||
#include <locale>
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
// const charT* toupper(charT* low, const charT* high) const;
|
||||
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// XFAIL: linux
|
||||
|
||||
#include <locale>
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <locale>
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <locale>
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <locale>
|
||||
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
// REQUIRES: locale.en_US.UTF-8
|
||||
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// TODO: investigation needed
|
||||
// XFAIL: linux-gnu
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <string>
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <string>
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <string>
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <string>
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <string>
|
||||
|
||||
|
@ -12,9 +12,9 @@
|
||||
// LWG 2056 changed the values of future_errc, so if we're using new headers
|
||||
// with an old library we'll get incorrect messages.
|
||||
//
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin13
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin13
|
||||
|
||||
// <future>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <memory>
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <chrono>
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
// UNSUPPORTED: libcpp-has-no-monotonic-clock
|
||||
|
||||
// <chrono>
|
||||
|
@ -9,8 +9,8 @@
|
||||
//
|
||||
// This test uses new symbols that were not defined in the libc++ shipped on
|
||||
// darwin11 and darwin12:
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_lib=x86_64-apple-darwin12
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin11
|
||||
// XFAIL: with_system_cxx_lib=x86_64-apple-darwin12
|
||||
|
||||
// <chrono>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user