Skip to content

Commit 7e4b075

Browse files
madminiNeroBurner
authored andcommitted
Fix EOL related build issues on Windows (InfiniTimeOrg#2077)
Prevent line endings from getting normalised to CRLF Co-authored-by: NeroBurner <pyro4hell@gmail.com>
1 parent d298292 commit 7e4b075

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.gitattributes

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Set the default behavior, in case people don't have core.autocrlf set.
2-
* text=auto
2+
# Prevent build errors on non lf systems (like Windows), we need files with lf as newlines.
3+
* text=auto eol=lf
34

45
# Explicitly declare text files you want to always be normalized and converted
5-
# to native line endings on checkout.
6+
# to lf line endings on checkout.
67
*.c text
78
*.cpp text
89
*.h text

0 commit comments

Comments
 (0)