1
0
mirror of https://github.com/dart-lang/sdk synced 2024-06-29 06:15:22 +00:00

Fix allowing Windows newlines in sh files.

llvm.sh must always use Linux newlines due to the #! line as a \r
character is considered part of the invoked program. This change fixes
that by simply forcing Unix newlines on all .sh files, like we do with
other file formats like C++ & Dart already.

Fixes: b/330293090
Change-Id: Iaf044da487261908f96c76d5c62385a033106a0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358480
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Auto-Submit: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
Jonas Termansen 2024-03-19 11:27:14 +00:00 committed by Commit Queue
parent 1b5368f309
commit f30a7ade48

1
.gitattributes vendored
View File

@ -4,6 +4,7 @@
*.cpp text eol=lf
*.h text eol=lf
*.dart text eol=lf
*.sh text eol=lf
# Explicitly declare text files we want to be normalized.
*.gyp text