diff --git a/backend.native/build.gradle b/backend.native/build.gradle index 211e0fba13b..dd9f6a901a6 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -39,11 +39,24 @@ kotlinNativeInterop { compilerOpts "-I$llvmInstallPath/include" linkerOpts "-L$llvmInstallPath/lib" } + + hash { // TODO: copy-pasted from ':common:compileHash' + linker 'clang++' + linkOutputs ':common:compileHash' + + headers fileTree('../common/src/hash/headers') { + include '**/*.h' + include '**/*.hpp' + } + + pkg 'org.jetbrains.kotlin.backend.native.hash' + } } dependencies { compilerCompile deps compilerCompile kotlinNativeInterop['llvm'] + compilerCompile kotlinNativeInterop['hash'] cli_bcCompile deps cli_bcCompile sourceSets.compiler.output