[libcxx-commits] [libcxx] [libcxx] Export directory_iterator in module build (PR #129195)
Takuto Ikuta via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 28 20:26:46 PST 2025
https://github.com/atetubou updated https://github.com/llvm/llvm-project/pull/129195
>From 0e18d5a4b657c5e168974789a440d47fc6101c5a Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tikuta at google.com>
Date: Fri, 28 Feb 2025 14:45:55 +0900
Subject: [PATCH] [libcxx] Export directory_iterator in module build
This is workaround for the link error like https://crbug.com/390537876.
---
libcxx/include/module.modulemap | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 0f2016e7f5d15..f94b6fc519399 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -1229,7 +1229,11 @@ module std [system] {
module filesystem {
module copy_options { header "__filesystem/copy_options.h" }
module directory_entry { header "__filesystem/directory_entry.h" }
- module directory_iterator { header "__filesystem/directory_iterator.h" }
+ module directory_iterator {
+ header "__filesystem/directory_iterator.h"
+ // This is a workaround for https://github.com/llvm/llvm-project/issues/120108.
+ export *
+ }
module directory_options { header "__filesystem/directory_options.h" }
module file_status { header "__filesystem/file_status.h" }
module file_time_type { header "__filesystem/file_time_type.h" }
More information about the libcxx-commits
mailing list