Add support for @CompilerOptions annotation for supplying compiler
options from scripts. #KT-34274 fixed
This commit is contained in:
committed by
Ilya Chernikov
parent
8c6916af52
commit
35d7bb4a26
+10
@@ -37,3 +37,13 @@ annotation class Repository(val value: String = "", val id: String = "", val url
|
||||
@Repeatable
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class Import(vararg val paths: String)
|
||||
|
||||
/**
|
||||
* Compiler options that will be applied on script compilation
|
||||
*
|
||||
* @see [kotlin.script.experimental.api.compilerOptions]
|
||||
*/
|
||||
@Target(AnnotationTarget.FILE)
|
||||
@Repeatable
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class CompilerOptions(vararg val options: String)
|
||||
|
||||
Reference in New Issue
Block a user