Rick Clephas
11/16/2023, 2:32 PMdmitriy.novozhilov
11/16/2023, 2:35 PMRick Clephas
11/16/2023, 2:36 PMdmitriy.novozhilov
11/16/2023, 2:38 PMRick Clephas
11/16/2023, 2:45 PMdmitriy.novozhilov
11/16/2023, 2:47 PMNoSuchElementException
at ClassicFrontendFacade.kt:554
, not sure about the line number (554 doesn’t exist),
but it seems that with this change stdlib is now required for all tests using the ClassicFrontendFacade
.kotlin.internal.native.test.nativeHome
to be set (which I am currently getting from NativeCompilerDownloader
).
I guess that is to be expected as I am using the internal test framework 😁.dmitriy.novozhilov
11/16/2023, 3:36 PMVladimir Sukharev
11/17/2023, 7:58 AM// WITH_STDLIB
used common stdlib and did not see
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<T>
in enums, which are unique to native stdlib.
It can be seen in lines like https://github.com/JetBrains/kotlin/commit/8f03eb931467f375d1428c5b73196bf015892f54#diff-754bc0f20ca136f2868b92a96101339637ad779f805581b49edc88f8a9461468R53
So, WITH_STDLIB
directive was permanently set, and native stdlib proper lookup now is needed for all native tests
Before fix, common stdlib was used, which did not have enumEntries
property (I guess this https://github.com/JetBrains/kotlin/blob/1564f2c549bbdff361c02f71aa128e06274336ce/core/builtins/native/kotlin/Enum.kt#L13)
and now native stdlib is used, which has the property https://github.com/JetBrains/kotlin/blob/64fd4ac510f56f1d5480a1631849c1852a689d5a/kotlin-native/runtime/src/main/kotlin/kotlin/Enum.kt#L44