[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:
Sergey Bogolepov
2022-07-20 11:32:00 +03:00
committed by Space
parent 30f1af7ce0
commit cd54afea8f
6 changed files with 27 additions and 5 deletions
@@ -386,6 +386,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
putIfNotNull(BUNDLE_ID, parseBundleId(arguments, outputKind, configuration))
arguments.testDumpOutputPath?.let { put(TEST_DUMP_OUTPUT_PATH, it) }
put(PARTIAL_LINKAGE, arguments.partialLinkage)
put(OMIT_FRAMEWORK_BINARY, arguments.omitFrameworkBinary)
}
}
}