File tree 3 files changed +10
-1
lines changed
cli/src/main/scala/scala/scalanative/cli
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ val cliAssemblyJarName = settingKey[String]("Name of created assembly jar")
53
53
inThisBuild(
54
54
Def .settings(
55
55
organization := " org.scala-native" ,
56
- scalaNativeVersion := " 0.4.4-SNAPSHOT " ,
56
+ scalaNativeVersion := " 0.4.4" ,
57
57
version := scalaNativeVersion.value,
58
58
scalaVersion := crossScalaVersions212.last,
59
59
crossScalaVersions := latestsScalaVersions,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ case class NativeConfigOptions(
16
16
checkFatalWarnings : Boolean = false ,
17
17
dump : Boolean = false ,
18
18
noOptimize : Boolean = false ,
19
+ embedResources : Boolean = false ,
19
20
ltp : List [String ] = List .empty,
20
21
linkingOption : List [String ] = List .empty,
21
22
compileOption : List [String ] = List .empty,
@@ -80,6 +81,13 @@ object NativeConfigOptions {
80
81
c.copy(nativeConfig = c.nativeConfig.copy(noOptimize = true ))
81
82
)
82
83
.text(" Should the resulting NIR code be not optimized? [false]" )
84
+ parser
85
+ .opt[Unit ](" embed-resources" )
86
+ .optional()
87
+ .action((x, c) =>
88
+ c.copy(nativeConfig = c.nativeConfig.copy(embedResources = true ))
89
+ )
90
+ .text(" Shall resources file be embeded into executable? [false]" )
83
91
parser
84
92
.opt[String ](" ltp" )
85
93
.valueName(" <keystring=value>" )
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ object ConfigConverter {
61
61
.withCheckFatalWarnings(options.nativeConfig.checkFatalWarnings)
62
62
.withDump(options.nativeConfig.dump)
63
63
.withOptimize(! options.nativeConfig.noOptimize)
64
+ .withEmbedResources(options.nativeConfig.embedResources)
64
65
.withTargetTriple(options.nativeConfig.targetTriple)
65
66
.withClang(clang)
66
67
.withClangPP(clangPP)
You can’t perform that action at this time.
0 commit comments