From 1727da52ab1faed5cff43cf5f029efdcc1de5d1d Mon Sep 17 00:00:00 2001 From: Levente Bajczi Date: Mon, 24 Jul 2023 12:11:25 +0200 Subject: [PATCH] Added logging on enabledness --- subprojects/frontends/llvm/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/frontends/llvm/build.gradle.kts b/subprojects/frontends/llvm/build.gradle.kts index 3250220483..535b63eb51 100644 --- a/subprojects/frontends/llvm/build.gradle.kts +++ b/subprojects/frontends/llvm/build.gradle.kts @@ -60,6 +60,7 @@ fun jniConfigFlags(): Array { val jdkHomeArr = runCommandForOutput("bash", "-c", "dirname \$(cd \$(dirname \$(readlink \$(which javac))); pwd -P)") check(jdkHomeArr.size == 1) val jdkHome = File(jdkHomeArr[0]) + check(jdkHome.exists()) val mainInclude = jdkHome.resolve("include") val linuxInclude = mainInclude.resolve("linux") return arrayOf( @@ -77,6 +78,7 @@ library { *jniConfigFlags(), *llvmConfigFlags("--cxxflags"))) onlyIf { + println("CppCompile is enabled: $enabled") enabled } } @@ -87,6 +89,7 @@ library { *llvmConfigFlags("--cxxflags", "--ldflags", "--libs", "core", "bitreader"), "-ldl")) onlyIf { + println("LinkSharedLibrary is enabled: $enabled") enabled } }