forked from kscience/kmath
default to Clang for building bindings
This commit is contained in:
parent
84570549e2
commit
3b6e80f5b6
@ -135,6 +135,7 @@ val extractJNoa by tasks.registering(Copy::class) {
|
|||||||
val configureCpp by tasks.registering {
|
val configureCpp by tasks.registering {
|
||||||
dependsOn(extractCMake)
|
dependsOn(extractCMake)
|
||||||
dependsOn(extractNinja)
|
dependsOn(extractNinja)
|
||||||
|
dependsOn(extractClang)
|
||||||
dependsOn(extractTorch)
|
dependsOn(extractTorch)
|
||||||
dependsOn(extractJNoa)
|
dependsOn(extractJNoa)
|
||||||
onlyIf { !file(cppBuildDir).exists() }
|
onlyIf { !file(cppBuildDir).exists() }
|
||||||
@ -150,9 +151,8 @@ val configureCpp by tasks.registering {
|
|||||||
jNoaDir,
|
jNoaDir,
|
||||||
"-GNinja",
|
"-GNinja",
|
||||||
"-DCMAKE_MAKE_PROGRAM=$ninjaCmd",
|
"-DCMAKE_MAKE_PROGRAM=$ninjaCmd",
|
||||||
// uncomment if Clang required
|
"-DCMAKE_C_COMPILER=$clangCmd",
|
||||||
//"-DCMAKE_C_COMPILER=$clangCmd",
|
"-DCMAKE_CXX_COMPILER=$clangxxCmd",
|
||||||
//"-DCMAKE_CXX_COMPILER=$clangxxCmd",
|
|
||||||
"-DCMAKE_PREFIX_PATH=$thirdPartyDir/torch/$torchArchive",
|
"-DCMAKE_PREFIX_PATH=$thirdPartyDir/torch/$torchArchive",
|
||||||
"-DJAVA_HOME=$javaHome",
|
"-DJAVA_HOME=$javaHome",
|
||||||
"-DBUILD_JNOA=ON",
|
"-DBUILD_JNOA=ON",
|
||||||
|
Loading…
Reference in New Issue
Block a user