2016-01-05 02:25:15 +00:00
|
|
|
.\" Automatically generated by Pandoc 1.15.1
|
|
|
|
.\"
|
|
|
|
.hy
|
2016-01-07 03:21:36 +00:00
|
|
|
.TH "dotnet-native" "1" "January 2016" "" ""
|
2016-01-05 02:25:15 +00:00
|
|
|
.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
|
2016-03-18 04:27:33 +00:00
|
|
|
and specify compilationOptions.emitEntryPoint in the project.json.
|
2016-01-05 02:25:15 +00:00
|
|
|
.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
|
2016-01-07 03:21:36 +00:00
|
|
|
Zlatko Knezevic zlakne\@microsoft.com.
|