-
Notifications
You must be signed in to change notification settings - Fork 564
Support -Xexport-library in reverse C interop. #2740
Conversation
@@ -283,7 +283,8 @@ private fun selectExportedLibraries( | |||
): List<String> { | |||
val exportedLibraries = arguments.exportedLibraries?.toList().orEmpty() | |||
|
|||
return if (exportedLibraries.isNotEmpty() && outputKind != CompilerOutputKind.FRAMEWORK) { | |||
return if (exportedLibraries.isNotEmpty() && outputKind != CompilerOutputKind.FRAMEWORK && | |||
outputKind != CompilerOutputKind.STATIC && outputKind != CompilerOutputKind.DYNAMIC) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe fix error message below too?
moduleDescriptors += context.moduleDescriptor | ||
moduleDescriptors += context.getExportedDependencies() | ||
|
||
currentPackageFragments = context.moduleDescriptor.getPackageFragments().sortedWith( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include exported dependencies' package fragments too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why, looks like everything is exported anyway (as descriptor tree contains all them).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is currentPackageFragments
for then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, reworked.
No description provided.