From 010360df7d88ee8643e84b2549df5c2a8ea452ab Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 6 Jun 2017 13:34:36 +0300 Subject: [PATCH] build: disable producing shared library for llvm debug info (gradle version dependent) --- llvmDebugInfoC/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvmDebugInfoC/build.gradle b/llvmDebugInfoC/build.gradle index bf1aa01cb1f..d1ff32c6605 100644 --- a/llvmDebugInfoC/build.gradle +++ b/llvmDebugInfoC/build.gradle @@ -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(),