125 lines
2.4 KiB
Groff
125 lines
2.4 KiB
Groff
.\" Automatically generated by Pandoc 1.15.1
|
|
.\"
|
|
.hy
|
|
.TH "dotnet-native" "1" "January 2016" "" ""
|
|
.SH NAME
|
|
.PP
|
|
dotnet\-compile\-native \-\- Compiles IL binaries to native binaries.
|
|
.SH SYNOPSIS
|
|
.PP
|
|
dotnet compile [\-\-appdepsdk] [\-\-configuration] [\-\-ilcargs]
|
|
[\-\-linklib] [\-\-logpath] [\-\-mode] [\-\-out] [\-\-reference]
|
|
[\-\-temp\-out] [\-\-verbose]
|
|
.SH DESCRIPTION
|
|
.PP
|
|
The \f[C]compile\-native\f[] command compiles IL assemblies to native
|
|
machine code.
|
|
It is used by \f[C]dotnet\-compile\ \-\-native\f[].
|
|
.PP
|
|
The output is a native exe that conforms to the architecture of the
|
|
underlying operating system (i.e.
|
|
running on 64\-bit OS will produce a native 64\-bit exe).
|
|
This can be overriden via the \-\-arch switch and specifying the wanted
|
|
architecture.
|
|
The executable has a default extension of "" on Linux and OS X and
|
|
".exe" on Windows.
|
|
The source must include a `static void Main(string[] args) entry point
|
|
and specify compilationOptions.emitEntryPoint in the project.json.
|
|
.PP
|
|
Output files are written to the child \f[C]bin\f[] folder, which will be
|
|
created if it doesn\[aq]t exist.
|
|
Files will be overwritten as needed.
|
|
.SH OPTIONS
|
|
.PP
|
|
\f[C]\-\-appdepsdk\ <SDK_PATH>\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Path\ to\ custom\ AppDepSDK
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-c,\ \-\-configuration\ [debug|release]\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Build\ configuration.\ Defaults\ to\ `debug`.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-\-ilcargs\ <args>\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Custom\ arguments\ for\ the\ IL\ Compiler.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-\-ilcpath\ <ILC_PATH>\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Path\ to\ a\ custom\ ilc.exe
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-\-linklib\ <LIB_PATH>\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Path\ to\ static\ lib\ to\ link
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-\-logpath\ <LOG_PATH>\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Enables\ logging\ and\ writes\ native\ compilation\ logs\ to\ the\ given\ path.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-m,\ \-\-mode\ [cpp|ryujit|custom]\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Code\ generation\ mode.\ Defaults\ to\ ryujit.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-o,\ \-\-out\ directoryname\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Output\ directory\ for\ the\ native\ executable.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-r,\ \-\-reference\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Path\ to\ a\ managed\ dll\ reference\ for\ the\ app.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-t,\ \-\-temp\-out\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Specifies\ temporary\ directory\ for\ intermediate\ files.
|
|
\f[]
|
|
.fi
|
|
.PP
|
|
\f[C]\-v,\ \-\-verbose\f[]
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
Prints\ verbose\ logging\ information,\ to\ follow\ the\ flow\ of\ execution\ of\ the\ command.
|
|
\f[]
|
|
.fi
|
|
.SH SEE ALSO
|
|
.PP
|
|
dotnet\-compile(1), dotnet(1), dotnet\-restore(1)
|
|
.SH AUTHORS
|
|
Zlatko Knezevic zlakne\@microsoft.com.
|