Link with exceptionsSupport only for dynamic caches
This commit is contained in:
+3
-1
@@ -69,7 +69,9 @@ private fun linkAllDependencies(context: Context, generatedBitcodeFiles: List<St
|
|||||||
val bitcodeLibraries = context.llvm.bitcodeToLink.map { it.bitcodePaths }.flatten().filter { it.isBitcode }
|
val bitcodeLibraries = context.llvm.bitcodeToLink.map { it.bitcodePaths }.flatten().filter { it.isBitcode }
|
||||||
val additionalBitcodeFilesToLink = context.llvm.additionalProducedBitcodeFiles
|
val additionalBitcodeFilesToLink = context.llvm.additionalProducedBitcodeFiles
|
||||||
val exceptionsSupportNativeLibrary = config.exceptionsSupportNativeLibrary
|
val exceptionsSupportNativeLibrary = config.exceptionsSupportNativeLibrary
|
||||||
val bitcodeFiles = (nativeLibraries + exceptionsSupportNativeLibrary + generatedBitcodeFiles + additionalBitcodeFilesToLink + bitcodeLibraries).toSet()
|
val bitcodeFiles = (nativeLibraries + generatedBitcodeFiles + additionalBitcodeFilesToLink + bitcodeLibraries).toMutableSet()
|
||||||
|
if (config.produce == CompilerOutputKind.DYNAMIC_CACHE)
|
||||||
|
bitcodeFiles += exceptionsSupportNativeLibrary
|
||||||
|
|
||||||
val llvmModule = context.llvmModule!!
|
val llvmModule = context.llvmModule!!
|
||||||
bitcodeFiles.forEach {
|
bitcodeFiles.forEach {
|
||||||
|
|||||||
Reference in New Issue
Block a user