diff options
author | Ting-Yuan Huang <laszio@google.com> | 2022-01-13 13:30:05 -0800 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2022-02-02 13:45:47 -0800 |
commit | b5867e6af5e30193d7a11c6ee39262c0cba193ab (patch) | |
tree | 671acd2bdcdb4ec7932882458aa21837de917fd3 /gradle-plugin | |
parent | 35e1556f6f329714a9d730ea4a7743317535ce1a (diff) | |
download | ksp-b5867e6af5e30193d7a11c6ee39262c0cba193ab.tar.gz |
Unconditionally disable FIR in KSP Gradle tasks
KSP for FIR is still under development. This change allows KSP to be
used with compiler tasks where FIR is enabled.
Diffstat (limited to 'gradle-plugin')
-rw-r--r-- | gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt index 73eb242a..1e664f3c 100644 --- a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt +++ b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt @@ -577,6 +577,7 @@ abstract class KspTaskJvm @Inject constructor( args.addPluginOptions(options.get()) args.destinationAsFile = destination args.allowNoSourceFiles = true + args.useFir = false } // Overrding an internal function is hacky. @@ -671,6 +672,7 @@ abstract class KspTaskJS @Inject constructor( args.addPluginOptions(options.get()) args.outputFile = File(destination, "dummyOutput.js").canonicalPath kotlinOptions.copyFreeCompilerArgsToArgs(args) + args.useFir = false } // Overrding an internal function is hacky. @@ -750,6 +752,7 @@ abstract class KspTaskMetadata @Inject constructor( args.friendPaths = friendPaths.files.map { it.absolutePath }.toTypedArray() args.refinesPaths = refinesMetadataPaths.map { it.absolutePath }.toTypedArray() args.expectActualLinker = true + args.useFir = false } // Overrding an internal function is hacky. |