Skip to content

Dart should compile with -Wnewline-eof to match Flutter #60403

@eseidel

Description

@eseidel

When Flutter compiles Dart it uses -Wnewline-eof, supposedly to match fuchsia:
https://github.com/flutter/flutter/blob/8893670e159698ae57307bf72922f1f1c8ee7d48/engine/src/build/config/clang/BUILD.gn#L22

Dart doesn't use this flag (understandably), but it makes it so when you add a file in Dart you risk only realizing you're going to break the build in Flutter when you roll, rather than when you add the file.

For Shorebird we've fixed this by adding this flag, but I'm not sure I've done it in the right place. Will send a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions