NativeConfig

sealed trait NativeConfig

An object describing how to configure the Scala Native toolchain.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

Build target for current compilation

Build target for current compilation

Shall linker check that NIR is well-formed after every phase?

Shall linker check that NIR is well-formed after every phase?

Shall linker NIR check treat warnings as errors?

Shall linker NIR check treat warnings as errors?

def clang: Path

The path to the clang executable.

The path to the clang executable.

The path to the clang++ executable.

The path to the clang++ executable.

The compilation options passed to LLVM.

The compilation options passed to LLVM.

Shall linker dump intermediate NIR after every phase?

Shall linker dump intermediate NIR after every phase?

Shall the resource files be embedded in the resulting binary file? Allows the use of getClass().getResourceAsStream() on the included files. Will not embed files with certain extensions, including ".c", ".h", ".scala" and ".class".

Shall the resource files be embedded in the resulting binary file? Allows the use of getClass().getResourceAsStream() on the included files. Will not embed files with certain extensions, including ".c", ".h", ".scala" and ".class".

def gc: GC

The garbage collector to use.

The garbage collector to use.

Should stubs be linked?

Should stubs be linked?

The options passed to LLVM's linker.

The options passed to LLVM's linker.

Map of user defined properties resolved at linktime

Map of user defined properties resolved at linktime

def lto: LTO

The LTO mode to use used during a release build.

The LTO mode to use used during a release build.

def mode: Mode

Compilation mode.

Compilation mode.

Shall we optimize the resulting NIR code?

Shall we optimize the resulting NIR code?

Configuration when doing optimization

Configuration when doing optimization

Optional target triple that defines current OS, ABI and CPU architecture.

Optional target triple that defines current OS, ABI and CPU architecture.

Shall we use the incremental compilation?

Shall we use the incremental compilation?

Create a new config with given build target

Create a new config with given build target

Create a new config with given check value.

Create a new config with given check value.

Create a new config with given checkFatalWarnings value.

Create a new config with given checkFatalWarnings value.

Create a new config with given path to clang.

Create a new config with given path to clang.

Create a new config with given path to clang++.

Create a new config with given path to clang++.

Create a new config with given compilation options.

Create a new config with given compilation options.

Create a new config with given dump value.

Create a new config with given dump value.

def withGC(value: GC): NativeConfig

Create a new config with given garbage collector.

Create a new config with given garbage collector.

Create a new config with given incrementalCompilation value

Create a new config with given incrementalCompilation value

def withLTO(value: LTO): NativeConfig

Create a new config with the given lto mode.

Create a new config with the given lto mode.

Create a new config with given behavior for stubs.

Create a new config with given behavior for stubs.

Create a new config with given linking options.

Create a new config with given linking options.

Create a new config with given linktime properites

Create a new config with given linktime properites

Create a new config with given compilation mode.

Create a new config with given compilation mode.

Create a new config with given optimize value

Create a new config with given optimize value

Create a optimization configuration

Create a optimization configuration

Create a new config given a target triple.

Create a new config given a target triple.

Create a new config given a target triple.

Create a new config given a target triple.