[KLIB] Add CLI key to provide relative path base
This commit is contained in:
+12
@@ -382,6 +382,18 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
|||||||
)
|
)
|
||||||
var contextReceivers: Boolean by FreezableVar(false)
|
var contextReceivers: Boolean by FreezableVar(false)
|
||||||
|
|
||||||
|
@Argument(
|
||||||
|
value = "-Xklib-relative-path-base",
|
||||||
|
description = "Provide a base paths to compute source's relative paths in klib (default is empty)"
|
||||||
|
)
|
||||||
|
var relativePathBases: Array<String>? by FreezableVar(null)
|
||||||
|
|
||||||
|
@Argument(
|
||||||
|
value = "-Xklib-normalize-absolute-path",
|
||||||
|
description = "Normalize absolute paths in klibs"
|
||||||
|
)
|
||||||
|
var normalizeAbsolutePath: Boolean by FreezableVar(false)
|
||||||
|
|
||||||
open fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> {
|
open fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> {
|
||||||
return HashMap<AnalysisFlag<*>, Any>().apply {
|
return HashMap<AnalysisFlag<*>, Any>().apply {
|
||||||
put(AnalysisFlags.skipMetadataVersionCheck, skipMetadataVersionCheck)
|
put(AnalysisFlags.skipMetadataVersionCheck, skipMetadataVersionCheck)
|
||||||
|
|||||||
+2
@@ -77,6 +77,7 @@ where advanced options include:
|
|||||||
-Xnew-inference Enable new experimental generic type inference algorithm
|
-Xnew-inference Enable new experimental generic type inference algorithm
|
||||||
-Xno-check-actual Do not check presence of 'actual' modifier in multi-platform projects
|
-Xno-check-actual Do not check presence of 'actual' modifier in multi-platform projects
|
||||||
-Xno-inline Disable method inlining
|
-Xno-inline Disable method inlining
|
||||||
|
-Xklib-normalize-absolute-path Normalize absolute paths in klibs
|
||||||
-Xopt-in=<fq.name> Enable usages of API that requires opt-in with an opt-in requirement marker with the given fully qualified name
|
-Xopt-in=<fq.name> Enable usages of API that requires opt-in with an opt-in requirement marker with the given fully qualified name
|
||||||
-Xphases-to-dump Dump backend state both before and after these phases
|
-Xphases-to-dump Dump backend state both before and after these phases
|
||||||
-Xphases-to-dump-after Dump backend state after these phases
|
-Xphases-to-dump-after Dump backend state after these phases
|
||||||
@@ -88,6 +89,7 @@ where advanced options include:
|
|||||||
-Xprofile-phases Profile backend phases
|
-Xprofile-phases Profile backend phases
|
||||||
-Xproper-ieee754-comparisons Generate proper IEEE 754 comparisons in all cases if values are statically known to be of primitive numeric types
|
-Xproper-ieee754-comparisons Generate proper IEEE 754 comparisons in all cases if values are statically known to be of primitive numeric types
|
||||||
-Xread-deserialized-contracts Enable reading of contracts from metadata
|
-Xread-deserialized-contracts Enable reading of contracts from metadata
|
||||||
|
-Xklib-relative-path-base Provide a base paths to compute source's relative paths in klib (default is empty)
|
||||||
-Xreport-output-files Report source to output files mapping
|
-Xreport-output-files Report source to output files mapping
|
||||||
-Xreport-perf Report detailed performance statistics
|
-Xreport-perf Report detailed performance statistics
|
||||||
-Xself-upper-bound-inference Support inferring type arguments based on only self upper bounds of the corresponding type parameters
|
-Xself-upper-bound-inference Support inferring type arguments based on only self upper bounds of the corresponding type parameters
|
||||||
|
|||||||
+2
@@ -178,6 +178,7 @@ where advanced options include:
|
|||||||
-Xnew-inference Enable new experimental generic type inference algorithm
|
-Xnew-inference Enable new experimental generic type inference algorithm
|
||||||
-Xno-check-actual Do not check presence of 'actual' modifier in multi-platform projects
|
-Xno-check-actual Do not check presence of 'actual' modifier in multi-platform projects
|
||||||
-Xno-inline Disable method inlining
|
-Xno-inline Disable method inlining
|
||||||
|
-Xklib-normalize-absolute-path Normalize absolute paths in klibs
|
||||||
-Xopt-in=<fq.name> Enable usages of API that requires opt-in with an opt-in requirement marker with the given fully qualified name
|
-Xopt-in=<fq.name> Enable usages of API that requires opt-in with an opt-in requirement marker with the given fully qualified name
|
||||||
-Xphases-to-dump Dump backend state both before and after these phases
|
-Xphases-to-dump Dump backend state both before and after these phases
|
||||||
-Xphases-to-dump-after Dump backend state after these phases
|
-Xphases-to-dump-after Dump backend state after these phases
|
||||||
@@ -189,6 +190,7 @@ where advanced options include:
|
|||||||
-Xprofile-phases Profile backend phases
|
-Xprofile-phases Profile backend phases
|
||||||
-Xproper-ieee754-comparisons Generate proper IEEE 754 comparisons in all cases if values are statically known to be of primitive numeric types
|
-Xproper-ieee754-comparisons Generate proper IEEE 754 comparisons in all cases if values are statically known to be of primitive numeric types
|
||||||
-Xread-deserialized-contracts Enable reading of contracts from metadata
|
-Xread-deserialized-contracts Enable reading of contracts from metadata
|
||||||
|
-Xklib-relative-path-base Provide a base paths to compute source's relative paths in klib (default is empty)
|
||||||
-Xreport-output-files Report source to output files mapping
|
-Xreport-output-files Report source to output files mapping
|
||||||
-Xreport-perf Report detailed performance statistics
|
-Xreport-perf Report detailed performance statistics
|
||||||
-Xself-upper-bound-inference Support inferring type arguments based on only self upper bounds of the corresponding type parameters
|
-Xself-upper-bound-inference Support inferring type arguments based on only self upper bounds of the corresponding type parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user