Introduced -nomain flag to disable generation of main(),
in assumption that it is provided by one of the libraries.
This commit is contained in:
committed by
alexander-gorshenev
parent
b5441f7470
commit
2d0aa9dcbb
@@ -72,6 +72,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
||||
put(NOSTDLIB, arguments.nostdlib)
|
||||
put(COMPILE_AS_STDLIB, arguments.compileAsStdlib)
|
||||
put(NOLINK, arguments.nolink)
|
||||
put(NOMAIN, arguments.nomain)
|
||||
put(LIBRARY_FILES,
|
||||
arguments.libraries.toNonNullList())
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
||||
@Argument(value = "nolink", description = "Don't link, just produce a bitcode file")
|
||||
public boolean nolink;
|
||||
|
||||
@Argument(value = "nomain", description = "Assume 'main' entry point to be provided by external libraries")
|
||||
public boolean nomain;
|
||||
|
||||
@Argument(value = "linkerArgs", description = "Pass arguments to linker", delimiter = " ")
|
||||
@ValueDescription("<arg>")
|
||||
public String[] linkerArguments;
|
||||
|
||||
Reference in New Issue
Block a user