Skip to content

Commit c86b5d9

Browse files
RuslanLafacebook-github-bot
authored andcommitted
make k2 default for kotlin library
Summary: We made it defaut for fb_android_library in the past. https://fb.workplace.com/groups/androidfyi/permalink/27688974757391110/ Now making it default for kotlin_library. Reviewed By: navidqar Differential Revision: D74074441 fbshipit-source-id: bb37f44d3dc12c42ea65c1177b144f0d9e2c1be1
1 parent aa528b5 commit c86b5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prelude/kotlin/kotlin_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_language_version(ctx: AnalysisContext) -> str:
284284
if "-language-version" in str(arg):
285285
current_language_version = str(arg).split("=")[1].strip(' "')
286286

287-
if ctx.attrs.k2 == True and kotlin_toolchain.allow_k2_usage:
287+
if ctx.attrs.k2 != False and kotlin_toolchain.allow_k2_usage:
288288
if not current_language_version or current_language_version < "2.0":
289289
if current_kotlin_release_version < "2.0":
290290
current_language_version = "2.0"

0 commit comments

Comments
 (0)