[test] Add support for Objective-C++ tests
Differential revision: https://reviews.llvm.org/D33049 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@303466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -466,6 +466,12 @@ class Configuration(object):
|
||||
self.config.available_features.add('glibc-%s' % maj_v)
|
||||
self.config.available_features.add('glibc-%s.%s' % (maj_v, min_v))
|
||||
|
||||
# Support Objective-C++ only on MacOS and if the compiler supports it.
|
||||
if self.target_info.platform() == "darwin" and \
|
||||
self.target_info.is_host_macosx() and \
|
||||
self.cxx.hasCompileFlag(["-x", "objective-c++", "-fobjc-arc"]):
|
||||
self.config.available_features.add("objective-c++")
|
||||
|
||||
def configure_compile_flags(self):
|
||||
no_default_flags = self.get_lit_bool('no_default_flags', False)
|
||||
if not no_default_flags:
|
||||
|
||||
Reference in New Issue
Block a user