Skip to content

Commit 5c5547f

Browse files
Generate native images with --no-fallback (#26)
Just in case
1 parent 91fec84 commit 5c5547f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ trait ScalafmtNativeImage extends ScalaModule with NativeImage {
1616
def nativeImageClassPath = T{
1717
runClasspath()
1818
}
19+
def nativeImageOptions = T{
20+
super.nativeImageOptions() ++ Seq(
21+
"--no-fallback"
22+
)
23+
}
1924
def nativeImagePersist = System.getenv("CI") != null
2025
def nativeImageGraalVmJvmId = "graalvm-java11:21.2.0"
2126
def nativeImageName = "scalafmt"

0 commit comments

Comments
 (0)