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(),