build: disable producing shared library for llvm debug info (gradle version dependent)
This commit is contained in:
committed by
vvlevchenko
parent
037580fbb7
commit
010360df7d
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user