forked from OSchip/llvm-project
[libc++] Rename the 'libc++' Lit feature to 'llvm-libc++'
This is to simplify an upcoming change where we distinguish between flavors of libc++ by adding an apple-libc++ Lit feature. Differential Revision: https://reviews.llvm.org/D110870
This commit is contained in:
parent
e2b838dd91
commit
f800560ff1
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
from libcxx.test.dsl import *
|
from libcxx.test.dsl import *
|
||||||
from libcxx.test.features import _isMSVC
|
from libcxx.test.features import _isMSVC
|
||||||
|
import re
|
||||||
|
|
||||||
_warningFlags = [
|
_warningFlags = [
|
||||||
'-Werror',
|
'-Werror',
|
||||||
|
@ -91,11 +92,24 @@ DEFAULT_PARAMETERS = [
|
||||||
AddCompileFlag('-fno-rtti')
|
AddCompileFlag('-fno-rtti')
|
||||||
]),
|
]),
|
||||||
|
|
||||||
Parameter(name='stdlib', choices=['libc++', 'libstdc++', 'msvc'], type=str, default='libc++',
|
Parameter(name='stdlib', choices=['llvm-libc++', 'libstdc++', 'msvc'], type=str, default='llvm-libc++',
|
||||||
help="The C++ Standard Library implementation being tested.",
|
help="""The C++ Standard Library implementation being tested.
|
||||||
actions=lambda stdlib: [
|
|
||||||
AddFeature('stdlib={}'.format(stdlib))
|
Note that this parameter can also be used to encode different 'flavors' of the same
|
||||||
]),
|
standard library, such as libc++ as shipped by a different vendor, if it has different
|
||||||
|
properties worth testing.
|
||||||
|
|
||||||
|
The Standard libraries currently supported are:
|
||||||
|
- llvm-libc++: The 'upstream' libc++ as shipped with LLVM.
|
||||||
|
- libstdc++: The GNU C++ library typically shipped with GCC.
|
||||||
|
- msvc: The Microsoft implementation of the C++ Standard Library.
|
||||||
|
""",
|
||||||
|
actions=lambda stdlib: filter(None, [
|
||||||
|
AddFeature('stdlib={}'.format(stdlib)),
|
||||||
|
# Also add an umbrella feature 'stdlib=libc++' for all flavors of libc++, to simplify
|
||||||
|
# the test suite.
|
||||||
|
AddFeature('stdlib=libc++') if re.match('.+-libc\+\+', stdlib) else None
|
||||||
|
])),
|
||||||
|
|
||||||
Parameter(name='enable_warnings', choices=[True, False], type=bool, default=True,
|
Parameter(name='enable_warnings', choices=[True, False], type=bool, default=True,
|
||||||
help="Whether to enable warnings when compiling the test suite.",
|
help="Whether to enable warnings when compiling the test suite.",
|
||||||
|
|
Loading…
Reference in New Issue