From 29cda7cb24b0e654a145e97cbc58aefd5ddc84b3 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Fri, 11 Oct 2019 10:27:07 +0300 Subject: [PATCH] [FIR] Always use LF line endings in generated fir tree --- compiler/fir/resolve/src/.gitattributes | 1 + compiler/fir/tree/build.gradle.kts | 1 + 2 files changed, 2 insertions(+) create mode 100644 compiler/fir/resolve/src/.gitattributes diff --git a/compiler/fir/resolve/src/.gitattributes b/compiler/fir/resolve/src/.gitattributes new file mode 100644 index 00000000000..d0496f1a266 --- /dev/null +++ b/compiler/fir/resolve/src/.gitattributes @@ -0,0 +1 @@ +*.kt eol=lf diff --git a/compiler/fir/tree/build.gradle.kts b/compiler/fir/tree/build.gradle.kts index b4752f7b8ea..f941c370823 100644 --- a/compiler/fir/tree/build.gradle.kts +++ b/compiler/fir/tree/build.gradle.kts @@ -41,6 +41,7 @@ val generateTree by tasks.registering(NoDebugJavaExec::class) { args(generationRoot) classpath = generatorClasspath main = "org.jetbrains.kotlin.fir.tree.generator.MainKt" + systemProperties["line.separator"] = "\n" } val compileKotlin by tasks