From f96884b60a08f275a95dc24d38aa38909e8a4daa Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Wed, 28 Sep 2016 17:54:08 +0300 Subject: [PATCH] build: llvmInstallPath becomes /opt/local/libexec/llvm-3.8 NOTE: if for some reasons you need to redefine this values, please add it to local.property --- build.gradle | 8 +++++--- gradle.properties | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index a3b77570ab2..8dd8df520aa 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,7 @@ ant.importBuild 'backend.native/kotlin-ir/build.xml' -Properties props = new Properties() -props.load(new FileInputStream("$project.rootDir/local.properties")) -props.each {prop -> project.ext.set(prop.key, prop.value)} \ No newline at end of file +if (new File("$project.rootDir/local.properties").exists()) { + Properties props = new Properties() + props.load(new FileInputStream("$project.rootDir/local.properties")) + props.each {prop -> project.ext.set(prop.key, prop.value)} +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index d09f037bee0..0a7c8be456b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,2 @@ kotlin_version=1.0.4 +llvmInstallPath=/opt/local/libexec/llvm-3.8 \ No newline at end of file