build: disable producing shared library for llvm debug info (gradle version dependent)

This commit is contained in:
Vasily Levchenko
2017-06-06 13:34:36 +03:00
committed by vvlevchenko
parent 037580fbb7
commit 010360df7d
+4 -1
View File
@@ -21,10 +21,13 @@ model {
components {
debugInfo(NativeLibrarySpec) {
sources.cpp.source.srcDirs "src/main/cpp"
binaries.all {
binaries.withType(StaticLibraryBinarySpec) { binary ->
cppCompiler.args "--std=c++11", "-g", "-fPIC", "-I${llvmDir}/include", "-I${projectDir}/src/main/include"
linker.args "-L${llvmDir}/lib", "-lLLVMCore", "-lLLVMSupport"
}
binaries.withType(SharedLibraryBinarySpec) { binary ->
buildable = false
}
}
def demoCFlags = ["-g", "-I${llvmDir}/include".toString(),