From 3b6e80f5b6f85dfbc038c3b7d265ffaac08642c1 Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Tue, 10 Aug 2021 06:51:46 +0100 Subject: [PATCH] default to Clang for building bindings --- kmath-noa/build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kmath-noa/build.gradle.kts b/kmath-noa/build.gradle.kts index d8482d9ef..3747b6f7d 100644 --- a/kmath-noa/build.gradle.kts +++ b/kmath-noa/build.gradle.kts @@ -135,6 +135,7 @@ val extractJNoa by tasks.registering(Copy::class) { val configureCpp by tasks.registering { dependsOn(extractCMake) dependsOn(extractNinja) + dependsOn(extractClang) dependsOn(extractTorch) dependsOn(extractJNoa) onlyIf { !file(cppBuildDir).exists() } @@ -150,9 +151,8 @@ val configureCpp by tasks.registering { jNoaDir, "-GNinja", "-DCMAKE_MAKE_PROGRAM=$ninjaCmd", - // uncomment if Clang required - //"-DCMAKE_C_COMPILER=$clangCmd", - //"-DCMAKE_CXX_COMPILER=$clangxxCmd", + "-DCMAKE_C_COMPILER=$clangCmd", + "-DCMAKE_CXX_COMPILER=$clangxxCmd", "-DCMAKE_PREFIX_PATH=$thirdPartyDir/torch/$torchArchive", "-DJAVA_HOME=$javaHome", "-DBUILD_JNOA=ON",