Skip to content

[Downstream Change] Enable fstream independently of filesystem #375

@voltur01

Description

@voltur01

What is the change
Since C++17 fstream is only enabled as part of the full filesystem support, however in embedded systems it is typical to redirect standard IO into a serial port or use basic file operations with semihosting, while the rest of filesystem (directories and such) is not available.

This change will enable fstream independently of the full filesystem.

Why this change cannot be done upstream
This was discussed with the community:

The conclusion was that long term it is better to provide a porting API to be able to enable filesystem as the whole, even if parts of it are stubbed out.

This change will take quite some time, thus we are taking the downstream change to unblock users who want to port their code from pre-C++17, where fstream was available, to a later standard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ATfEArm Toolchain for Embedded specific issuedownstream-changeDownstream change to LLVM tree

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions