Skip to content

Commit 94bc2bb

Browse files
authored
Merge pull request #17 from krined-dev/Add-information-about-building-native-image
Added point about building native image with --no-fallback
2 parents 960c5be + e664cea commit 94bc2bb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/index.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ object Hello extends IOApp.Simple {
5353
```
5454
@:@
5555

56-
[Scala CLI]: https://scala-cli.virtuslab.org/
56+
### Native Image
57+
58+
When building GraalVM Native Image the --no-fallback option is required, otherwise native-image will try searching
59+
a static reflection configuration for [this Enumeration method]. Thus using this flag is safe only if you're not using
60+
Enumerations in your codebase, see [this comment] for more info.
61+
62+
[Scala CLI]: https://scala-cli.virtuslab.org/_
5763
[Scala Toolkit]: https://github.com/VirtusLab/toolkit
5864
[Cats]: https://typelevel.org/cats
5965
[Cats Effect]: https://typelevel.org/cats-effect
@@ -63,4 +69,7 @@ object Hello extends IOApp.Simple {
6369
[Http4s Ember Client]: https://http4s.org/v0.23/docs/client.html
6470
[Circe]: https://circe.github.io/circe/
6571
[Decline Effect]: https://ben.kirw.in/decline/effect.html
66-
[Munit Cats Effect]: https://github.com/typelevel/munit-cats-effect
72+
[Munit Cats Effect]: https://github.com/typelevel/munit-cats-effect
73+
74+
[this Enumeration method]: https://github.com/scala/scala/blob/v2.13.8/src/library/scala/Enumeration.scala#L190-L215=
75+
[this comment]: https://github.com/typelevel/cats-effect/issues/3051#issuecomment-1167026949

0 commit comments

Comments
 (0)