Only allow library prunning for the default links for now.

Don't forget to bring it back when library dependency info is available.
This commit is contained in:
Alexander Gorshenev
2017-09-25 20:10:11 +03:00
committed by alexander-gorshenev
parent 97936093dc
commit fc31e96b26
@@ -233,12 +233,7 @@ internal class LinkStage(val context: Context) {
private val emitted = context.bitcodeFileName
private val libraries = context.config.libraries
.map {
if (!it.isNeededForLink) {
if (!it.isDefaultLink) {
context.reportCompilationWarning("The '${it.libraryName}' library has not been referenced. Omitted from the final link.")
}
null
} else it
if (!it.isNeededForLink && it.isDefaultLink) null else it
}.filterNotNull()
private fun MutableList<String>.addNonEmpty(elements: List<String>) {