Skip to content

Commit 58f80ab

Browse files
committed
[runtime_cxxmodules] Export chrono file clock with std_filesystem module
Ensure _FilesystemClock is available with <filesystem> Fixes the warning: ``` [79/2727] Generating G__Core.cxx, ../lib/Core.pcm In module 'std' imported from input_line_1:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:52: error: definition of '_FilesystemClock' must be imported from module 'std.std_private_chrono_file_clock' before it is required template <class _Clock, class _Duration = typename _Clock::duration> ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:1: note: in instantiation of default argument for 'time_point<std::filesystem::_FilesystemClock>' required here template <class _Clock, class _Duration = typename _Clock::duration> ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/file_clock.h:49:8: note: definition here is not reachable struct _FilesystemClock { ```
1 parent 1b9471f commit 58f80ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interpreter/cling/include/cling/std_darwin.modulemap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ module std_expected [system] {
7979
}
8080
module std_filesystem [system] {
8181
header "filesystem"
82+
// make sure the clock definition comes in together with <filesystem>
83+
export std_private_chrono_file_clock
8284
export *
8385
}
8486
module std_format [system] {

0 commit comments

Comments
 (0)