mirror of
https://github.com/irmen/prog8.git
synced 2024-06-14 15:29:49 +00:00
27 lines
1.1 KiB
Kotlin
27 lines
1.1 KiB
Kotlin
package prog8.compilerinterface
|
|
|
|
import prog8.code.core.CbmPrgLauncherType
|
|
import prog8.code.core.OutputType
|
|
import prog8.code.core.ZeropageType
|
|
import java.nio.file.Path
|
|
import kotlin.io.path.Path
|
|
|
|
|
|
class CompilationOptions(val output: OutputType,
|
|
val launcher: CbmPrgLauncherType,
|
|
val zeropage: ZeropageType,
|
|
val zpReserved: List<UIntRange>,
|
|
val floats: Boolean,
|
|
val noSysInit: Boolean,
|
|
val compTarget: ICompilationTarget,
|
|
// these are set based on command line arguments:
|
|
var slowCodegenWarnings: Boolean = false,
|
|
var optimize: Boolean = false,
|
|
var optimizeFloatExpressions: Boolean = false,
|
|
var dontReinitGlobals: Boolean = false,
|
|
var asmQuiet: Boolean = false,
|
|
var asmListfile: Boolean = false,
|
|
var experimentalCodegen: Boolean = false,
|
|
var outputDir: Path = Path("")
|
|
)
|