Remove unnecessary flag for Kotlin compiles

This has been fixed in upstream Kotlin

Test: add /tmp/build.txt file and m metalava
Change-Id: I6d088548ee5a31452ad637bbdd75e26c8863926d
This commit is contained in:
Liz Kammer 2023-10-03 16:30:28 -04:00
parent fc5ff341e8
commit e10fef75f1

View file

@ -49,8 +49,5 @@ func init() {
"-J--add-opens=java.base/java.util=ALL-UNNAMED", // https://youtrack.jetbrains.com/issue/KT-43704
}, " "))
pctx.StaticVariable("KotlincGlobalFlags", strings.Join([]string{
// b/222162908: prevent kotlinc from reading /tmp/build.txt
"-Didea.plugins.compatible.build=999.SNAPSHOT",
}, " "))
pctx.StaticVariable("KotlincGlobalFlags", strings.Join([]string{}, " "))
}