NativeConfig

sealed

An object describing how to configure the Scala Native toolchain.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def check: Boolean

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

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

def checkFatalWarnings: Boolean

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.

def clangPP: Path

The path to the clang++ executable.

The path to the clang++ executable.

def compileOptions: Seq[String]

The compilation options passed to LLVM.

The compilation options passed to LLVM.

def dump: Boolean

Shall linker dump intermediate NIR after every phase?

Shall linker dump intermediate NIR after every phase?

def gc: GC

The garbage collector to use.

The garbage collector to use.

def linkStubs: Boolean

Should stubs be linked?

Should stubs be linked?

def linkingOptions: Seq[String]

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.

def optimize: Boolean

Shall we optimize the resulting NIR code?

Shall we optimize the resulting NIR code?

def targetTriple: Option[String]

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

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

def withCheck(value: Boolean): NativeConfig

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.

def withClang(value: Path): NativeConfig

Create a new config with given path to clang.

Create a new config with given path to clang.

def withClangPP(value: Path): NativeConfig

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

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

def withCompileOptions(value: Seq[String]): NativeConfig

Create a new config with given compilation options.

Create a new config with given compilation options.

def withDump(value: Boolean): NativeConfig

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.

def withLTO(value: LTO): NativeConfig

Create a new config with the given lto mode.

Create a new config with the given lto mode.

def withLinkStubs(value: Boolean): NativeConfig

Create a new config with given behavior for stubs.

Create a new config with given behavior for stubs.

def withLinkingOptions(value: Seq[String]): NativeConfig

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.

def withOptimize(value: Boolean): NativeConfig

Create a new config with given optimize value

Create a new config with given optimize value

def withTargetTriple(value: Option[String]): NativeConfig

Create a new config given a target triple.

Create a new config given a target triple.

def withTargetTriple(value: String): NativeConfig

Create a new config given a target triple.

Create a new config given a target triple.