The Bullseye MinGw version (posix variant) of std::filesystem returns an empty path from temp_directory_path(). This is not a problem for now because we use the boost filesystem variant, but it is in the way of migrating ot std::filesystem.
This diffs creates a new fsbridge function to get a temporary directory path that doesn't use temp_directory_path() for windows, preventing the bug.
Note that this function is only used during the execution of the unit tests.
Details
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABC7cc43166e7e6: Work around a bug with std::filesystem::temp_directory_path() with some MinGw
ninja check
Run the windows cross build tests.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- temp_path_windows
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 23328 Build 46275: Build Diff build-without-wallet · build-debug · lint-circular-dependencies · build-diff · build-clang · build-clang-tidy Build 46274: arc lint + arc unit