Skip to content

Commit

Permalink
Added logging on enabledness
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Jul 24, 2023
1 parent 808a884 commit 1727da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subprojects/frontends/llvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fun jniConfigFlags(): Array<String> {
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(
Expand All @@ -77,6 +78,7 @@ library {
*jniConfigFlags(),
*llvmConfigFlags("--cxxflags")))
onlyIf {
println("CppCompile is enabled: $enabled")
enabled
}
}
Expand All @@ -87,6 +89,7 @@ library {
*llvmConfigFlags("--cxxflags", "--ldflags", "--libs", "core", "bitreader"),
"-ldl"))
onlyIf {
println("LinkSharedLibrary is enabled: $enabled")
enabled
}
}
Expand Down

0 comments on commit 1727da5

Please sign in to comment.