File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
main/scala/scala/scalanative/cli/utils
test/scala/scala/scalanative/cli/utils Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ object ConfigConverter {
85
85
.withWorkdir(Paths .get(options.config.workdir).toAbsolutePath())
86
86
.withCompilerConfig(nativeConfig)
87
87
.withClassPath(classPath)
88
- .withMainClass(main)
88
+ .withMainClass(main + " $ " )
89
89
90
90
val verbosity = Tag .unwrap(options.logger.verbose)
91
91
val logger = new FilteredLogger (verbosity)
Original file line number Diff line number Diff line change 4
4
> runCli --version
5
5
6
6
# -- Link and check if outpath exists
7
- > runCli --outpath target/out1.exe -v -v --main Main$
7
+ > runCli --outpath target/out1.exe -v -v --main Main
8
8
$ exists target/out1.exe
9
9
> runExec ./target/out1.exe
10
10
11
11
# -- Fail to link without main specified
12
12
-> runCli --outpath target/out2 -v -v
13
13
14
14
# -- Fail to link with an incorrect option
15
- -> runCli --outpath target/out3 -v -v --gc fast --main Main$
15
+ -> runCli --outpath target/out3 -v -v --gc fast --main Main
16
16
17
17
# -- Link even with an unspecified option
18
- > runCli --outpath target/out4 -v -v --unspecified --main Main$
18
+ > runCli --outpath target/out4 -v -v --unspecified --main Main
19
19
20
20
# -- Do not write nir files if not specified
21
- > runCli --outpath target/out5 -v -v --main Main$
21
+ > runCli --outpath target/out5 -v -v --main Main
22
22
-$ exists optimized.hnir
23
23
$ exists target/out5
24
24
25
25
# -- Write nir files to workdir if specified
26
26
$ mkdir native-dir
27
- > runCli --outpath target/out6 -v -v --workdir native-dir --dump --main Main$
27
+ > runCli --outpath target/out6 -v -v --workdir native-dir --dump --main Main
28
28
$ exists native-dir/optimized.hnir
29
29
$ exists target/out6
Original file line number Diff line number Diff line change 1
1
> runScript scala-native-c Main.scala
2
2
$ exists Main$.nir
3
3
4
- > runScript scala-native-ld --main Main$ . -o scala-native-out.exe -v -v
4
+ > runScript scala-native-ld --main Main . -o scala-native-out.exe -v -v
5
5
$ exists scala-native-out.exe
6
6
> runExec ./scala-native-out.exe
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ import scala.scalanative.cli.options.MiscOptions
16
16
class ConfigConverterTest extends AnyFlatSpec {
17
17
val dummyLoggerOptions = LoggerOptions ()
18
18
val dummyNativeConfigOptions = NativeConfigOptions ()
19
- val dummyConfigOptions = ConfigOptions (main = Some (" Main$ " ))
19
+ val dummyConfigOptions = ConfigOptions (main = Some (" Main" ))
20
20
val dummyMiscOptions = MiscOptions ()
21
21
22
22
val dummyArguments =
23
23
Seq (" A.jar" , " B.jar" )
24
- val dummyMain = " Main$ "
24
+ val dummyMain = " Main"
25
25
26
26
val dummyCliOptions = CliOptions (
27
27
config = dummyConfigOptions,
You can’t perform that action at this time.
0 commit comments