diff --git a/Interop/Indexer/build.gradle b/Interop/Indexer/build.gradle index 7478f6dafdb..f4b525aab28 100644 --- a/Interop/Indexer/build.gradle +++ b/Interop/Indexer/build.gradle @@ -16,6 +16,13 @@ def javaHome = System.getProperty('java.home') def compilerArgsForJniIncludes = ["", "linux", "darwin"].collect { "-I$javaHome/../include/$it" } as String[] model { + //TODO: it's better to find some way share this configuration + toolChains { + clang(Clang) { + path "${llvmDir}/bin/clang" + } + } + components { clangbridge(NativeLibrarySpec) { sources { diff --git a/Interop/Runtime/build.gradle b/Interop/Runtime/build.gradle index 0c25acce013..600a73ea8c0 100644 --- a/Interop/Runtime/build.gradle +++ b/Interop/Runtime/build.gradle @@ -15,6 +15,13 @@ def javaHome = System.getProperty('java.home') def compilerArgsForJniIncludes = ["", "linux", "darwin"].collect { "-I$javaHome/../include/$it" } as String[] model { + //TODO: it's better to find some way share this configuration + toolChains { + clang(Clang) { + path "${llvmDir}/bin/clang" + } + } + components { callbacks(NativeLibrarySpec) { sources.c.source {