Deprecate -compilerOpts and -linkerOpts in cinterop (#3450)

This commit is contained in:
LepilkinaElena
2019-10-10 14:26:12 +03:00
committed by GitHub
parent aca4bab784
commit bd0e0dd2e7
@@ -71,13 +71,15 @@ class CInteropArguments(argParser: ArgParser =
val headerFilterPrefix by argParser.option(ArgType.String, HEADER_FILTER_ADDITIONAL_SEARCH_PREFIX, "hfasp",
"header file to produce kotlin bindings for").multiple().delimiter(",")
val compilerOpts by argParser.option(ArgType.String,
description = "additional compiler options (allows to add several options separated by spaces)")
description = "additional compiler options (allows to add several options separated by spaces)",
deprecatedWarning = "-compilerOpts is deprecated. Please use -compiler-options.")
.multiple().delimiter(" ")
val compilerOptions by argParser.option(ArgType.String, "compiler-options",
description = "additional compiler options (allows to add several options separated by spaces)")
.multiple().delimiter(" ")
val linkerOpts = argParser.option(ArgType.String, "linkerOpts",
description = "additional linker options (allows to add several options separated by spaces)")
description = "additional linker options (allows to add several options separated by spaces)",
deprecatedWarning = "-linkerOpts is deprecated. Please use -linker-options.")
.multiple().delimiter(" ")
val linkerOptions = argParser.option(ArgType.String, "linker-options",
description = "additional linker options (allows to add several options separated by spaces)")