diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-05 23:16:07 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-05 23:16:07 +0000 |
commit | bca6de0e4edf5de16fad3566645db68966fede58 (patch) | |
tree | 1ada83e323c3356c1bcb3785c62bae46648379ea /include | |
parent | c6d8e8a9cc5da3e006ad46e293797c5dcf847454 (diff) |
Adjust libc++ test infastructure to fully support modules
This patch overhalls the libc++ test format/configuration in order to fully support modules. By "fully support" I mean get almost all of the tests passing. The main hurdle for doing this is handling tests that `#define _LIBCPP_FOO` macros to test a different configuration. This patch deals with these tests in the following ways:
1. For tests that define single `_LIBCPP_ABI_FOO` macros have been annotated with `// MODULES_DEFINES: _LIBCPP_ABI_FOO`. This allows the test suite to define the macro on the command line so it uses a different set of modules.
2. Tests for libc++'s debug mode (which define custom `_LIBCPP_ASSERT`) are automatically detected by the test suite and are compiled and run with modules disabled.
This patch also cleans up how the `CXXCompiler` helper class handles enabling/disabling language features.
NOTE: This patch uses `LIT` features which were only committed to LLVM today. If this patch breaks running the libc++ tests you probably need to update LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/module.modulemap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/module.modulemap b/include/module.modulemap index 47ee972a7..b050e5a59 100644 --- a/include/module.modulemap +++ b/include/module.modulemap @@ -389,7 +389,7 @@ module std [system] { } module strstream { header "strstream" - requires !cplusplus11 + export * } module system_error { header "system_error" |