[K/N] Add option to omit generation of binary when producing framework
`-Xomit-framework-binary` is useful when the user does not care about generated machine code, but only about its public interface. Current use-case is for development purposes only: to iterate faster on ObjCExport. But potentially it can be turned into user-facing feature
This commit is contained in:
+3
@@ -387,6 +387,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
|
||||
@Argument(value = "-Xpartial-linkage", description = "Allow unlinked symbols")
|
||||
var partialLinkage: Boolean = false
|
||||
|
||||
@Argument(value = "-Xomit-framework-binary", description = "Omit binary when compiling framework")
|
||||
var omitFrameworkBinary: Boolean = false
|
||||
|
||||
override fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> =
|
||||
super.configureAnalysisFlags(collector, languageVersion).also {
|
||||
val optInList = it[AnalysisFlags.optIn] as List<*>
|
||||
|
||||
Reference in New Issue
Block a user