NativeImageModule
Provides a task to build a native executable using Graal VM.
It is recommended to specify a custom JDK that includes the native-image
Tool.
trait AppModule extends NativeImageModule {
def zincWorker = ModuleRef(ZincWorkerGraalvm)
object ZincWorkerGraalvm extends ZincWorkerModule {
def jvmId = "graalvm-community:23.0.1"
}
}
Attributes
- Source
- NativeImageModule.scala
- Graph
-
- Supertypes
-
trait WithZincWorkertrait Moduletrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill
Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill
Attributes
- Inherited from:
- Module
- Source
- Module.scala
- Supertypes
Value members
Abstract methods
Attributes
- Source
- NativeImageModule.scala
Attributes
- Source
- NativeImageModule.scala
Concrete methods
Builds a native executable for this module with finalMainClass as the application entry point.
Builds a native executable for this module with finalMainClass as the application entry point.
Value parameters
- args
-
Additional options for the
native-image
Tool. Use for - passing debug options - passing target specific options
Attributes
- Source
- NativeImageModule.scala
The classpath to use to generate the native image. Defaults to runClasspath.
The classpath to use to generate the native image. Defaults to runClasspath.
Attributes
- Source
- NativeImageModule.scala
Additional options for the native-image
Tool.
Additional options for the native-image
Tool.
Attributes
- Note
-
It is recommended to restrict this list to options that can be shared across targets.
- Source
- NativeImageModule.scala
Path to the `native-image` Tool. Defaults to a path relative to
Path to the `native-image` Tool. Defaults to a path relative to
- ZincWorkerModule.javaHome, if defined
- environment variable
GRAALVM_HOME
, if defined
Attributes
- Note
-
The task fails if the
native-image
Tool is not found. - Source
- NativeImageModule.scala
Inherited methods
Attributes
- Inherited from:
- BaseClass
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Module -> Any
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- WithZincWorker
- Source
- WithZincWorker.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- Module
- Source
- Module.scala