diff options
author | Mark de Wever <koraq@xs4all.nl> | 2023-08-19 18:35:14 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2023-08-22 20:15:59 +0200 |
commit | c9c71a7e0b37c81ba10bdddbcf6326a02281b13f (patch) | |
tree | 3eaf0e1a310e09d4790626753761d42a8409fc8e /libcxx/modules/std/filesystem.inc | |
parent | ef3a39160d55f6f3192d6bcc6e5efd3693cb07e0 (diff) | |
download | llvm-c9c71a7e0b37c81ba10bdddbcf6326a02281b13f.zip llvm-c9c71a7e0b37c81ba10bdddbcf6326a02281b13f.tar.gz llvm-c9c71a7e0b37c81ba10bdddbcf6326a02281b13f.tar.bz2 |
[libc++][C++20 modules] Tests no filesystem build.
Depends on D158331
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D158337
Diffstat (limited to 'libcxx/modules/std/filesystem.inc')
-rw-r--r-- | libcxx/modules/std/filesystem.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcxx/modules/std/filesystem.inc b/libcxx/modules/std/filesystem.inc index 565705c..3214b49f 100644 --- a/libcxx/modules/std/filesystem.inc +++ b/libcxx/modules/std/filesystem.inc @@ -18,6 +18,7 @@ export namespace std::filesystem { // [fs.class.filesystem.error], filesystem errors using std::filesystem::filesystem_error; +#ifndef _LIBCPP_HAS_NO_FILESYSTEM // [fs.class.directory.entry], directory entries using std::filesystem::directory_entry; @@ -30,6 +31,7 @@ export namespace std::filesystem { // [fs.class.rec.dir.itr], recursive directory iterators using std::filesystem::recursive_directory_iterator; +#endif // _LIBCPP_HAS_NO_FILESYSTEM // [fs.rec.dir.itr.nonmembers], range access for recursive directory iterators @@ -56,6 +58,7 @@ export namespace std::filesystem { using std::filesystem::operator|=; using std::filesystem::operator~; +#ifndef _LIBCPP_HAS_NO_FILESYSTEM // [fs.op.funcs], filesystem operations using std::filesystem::absolute; using std::filesystem::canonical; @@ -99,10 +102,10 @@ export namespace std::filesystem { using std::filesystem::symlink_status; using std::filesystem::temp_directory_path; using std::filesystem::weakly_canonical; +#endif // _LIBCPP_HAS_NO_FILESYSTEM // [depr.fs.path.factory] using std::filesystem::u8path; - } // namespace std::filesystem // [fs.path.hash], hash support @@ -111,6 +114,8 @@ export namespace std { } export namespace std::ranges { +#ifndef _LIBCPP_HAS_NO_FILESYSTEM using std::ranges::enable_borrowed_range; using std::ranges::enable_view; +#endif // _LIBCPP_HAS_NO_FILESYSTEM } // namespace std::ranges |