Fix EOL related build issues on Windows (#2077)

Prevent line endings from getting normalised to CRLF

Co-authored-by: NeroBurner <pyro4hell@gmail.com>
This commit is contained in:
Max Jakobitsch 2025-02-12 00:43:10 +01:00 committed by GitHub
parent d371ebc9e2
commit 993118a3bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
.gitattributes vendored
View file

@ -1,8 +1,9 @@
# Set the default behavior, in case people don't have core.autocrlf set. # Set the default behavior, in case people don't have core.autocrlf set.
* text=auto # Prevent build errors on non lf systems (like Windows), we need files with lf as newlines.
* text=auto eol=lf
# Explicitly declare text files you want to always be normalized and converted # Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout. # to lf line endings on checkout.
*.c text *.c text
*.cpp text *.cpp text
*.h text *.h text