You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/prog8/CompilerMain.kt
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ private fun compileMain(args: Array<String>): Boolean {
50
50
val quietAssembler by cli.option(ArgType.Boolean, fullName ="quietasm", description ="don't print assembler output results")
51
51
val slowCodegenWarnings by cli.option(ArgType.Boolean, fullName ="slowwarn", description="show debug warnings about slow/problematic assembly code generation")
52
52
val sourceDirs by cli.option(ArgType.String, fullName="srcdirs", description ="list of extra paths, separated with ${File.pathSeparator}, to search in for imported modules").multiple().delimiter(File.pathSeparator)
53
-
val compilationTarget by cli.option(ArgType.String, fullName ="target", description ="target output of the compiler (one of '${C64Target.NAME}', '${C128Target.NAME}', '${Cx16Target.NAME}', '${AtariTarget.NAME}', '${VMTarget.NAME}')").required()
53
+
val compilationTarget by cli.option(ArgType.String, fullName ="target", description ="target output of the compiler (one of '${C64Target.NAME}', '${C128Target.NAME}', '${Cx16Target.NAME}', '${AtariTarget.NAME}', '${VMTarget.NAME}') (required)")
54
54
val startVm by cli.option(ArgType.Boolean, fullName ="vm", description ="load and run a .p8ir IR source file in the VM")
55
55
val watchMode by cli.option(ArgType.Boolean, fullName ="watch", description ="continuous compilation mode (watch for file changes)")
56
56
val varsHighBank by cli.option(ArgType.Int, fullName ="varshigh", description ="put uninitialized variables in high memory area instead of at the end of the program. On the cx16 target the value specifies the HiRAM bank (0=keep active), on other systems it is ignored.")
@@ -80,9 +80,16 @@ private fun compileMain(args: Array<String>): Boolean {
80
80
if(srcdirs.firstOrNull()!=".")
81
81
srcdirs.add(0, ".")
82
82
83
-
if (compilationTarget !insetOf(C64Target.NAME, C128Target.NAME, Cx16Target.NAME, AtariTarget.NAME, VMTarget.NAME)) {
0 commit comments