File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if [[ -z "${ASCIINEMA_REC}" ]]; then
12
12
# Warm up scala-cli
13
13
echo " println(1)" | scala-cli -
14
14
echo " println(1)" | scala-cli --js - &&
15
- echo " println(1)" | scala-cli --native -S 2.13 -
15
+ echo " println(1)" | scala-cli --native -
16
16
17
17
# or do other preparation (e.g. create code)
18
18
else
31
31
clearConsole
32
32
33
33
cat << EOF | updateFile native.scala
34
- object Native extends App {
35
- import scala.scalanative.posix.limits
36
- println(s"Max path length in this OS is \$ {limits.PATH_MAX}")
37
- }
34
+ import scala.scalanative.posix.limits
35
+ @main def native() = println(s"Max path length in this OS is \$ {limits.PATH_MAX}")
38
36
EOF
39
37
40
- pe " # Scala Native works only with Scala 2.x so far"
41
- pe " scala-cli --native -S 2.13 native.scala"
38
+ pe " scala-cli --native native.scala"
42
39
doSleep 3
43
40
44
41
echo " " && echo " ok" > status.txt
You can’t perform that action at this time.
0 commit comments