Implement --purge_user_libs konanc and cinterop flag

This commit is contained in:
Svyatoslav Scherbina
2017-11-02 18:36:58 +03:00
committed by SvyatoslavScherbina
parent 68d30205c4
commit 9829605a95
7 changed files with 22 additions and 5 deletions
@@ -120,6 +120,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(PRINT_LOCATIONS, arguments.printLocations)
put(PRINT_BITCODE, arguments.printBitCode)
put(PURGE_USER_LIBS, arguments.purgeUserLibs)
put(VERIFY_IR, arguments.verifyIr)
put(VERIFY_DESCRIPTORS, arguments.verifyDescriptors)
put(VERIFY_BITCODE, arguments.verifyBitCode)
@@ -121,6 +121,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value = "--print_locations", description = "Print locations")
var printLocations: Boolean = false
@Argument(value = "--purge_user_libs", description = "Don't link unused libraries even explicitly specified")
var purgeUserLibs: Boolean = false
@Argument(value = "--time", description = "Report execution time for compiler phases")
var timePhases: Boolean = false