Add support for @CompilerOptions annotation for supplying compiler

options from scripts.

#KT-34274 fixed
This commit is contained in:
Efeturi Money
2019-10-21 18:06:29 +02:00
committed by Ilya Chernikov
parent 8c6916af52
commit 35d7bb4a26
4 changed files with 63 additions and 10 deletions
@@ -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)