aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorMax Jakobitsch <madmini@users.noreply.github.com>2025-02-12 00:43:10 +0100
committerGitHub <noreply@github.com>2025-02-11 23:43:10 +0000
commit993118a3bc5400e0b09a58fa1aa0bc8ae72634a2 (patch)
tree2c6510f8999cea40f12d8a3a4d2b42af253db936 /.gitattributes
parentd371ebc9e293f2ae19cc6c1f0502429237a1a5fe (diff)
Fix EOL related build issues on Windows (#2077)
Prevent line endings from getting normalised to CRLF Co-authored-by: NeroBurner <pyro4hell@gmail.com>
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes5
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
index 2257cac4..7adb0e69 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,8 +1,9 @@
# 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
-# to native line endings on checkout.
+# to lf line endings on checkout.
*.c text
*.cpp text
*.h text