dotnet-installer/src/Microsoft.DotNet.Tools.Compiler.Native
Senthil e0412f2e3d Let IlcArgs be an opaque string to dotnet native
IlcArgs are meant to be arguments to the ILCompiler and not path values

@brthor or @livarcocc PTAL

/Cc @gkhanna79
2015-11-30 15:29:59 -08:00
..
appdep 1) Adding support to invoke CLang/Linker for Mac 2015-11-25 07:40:10 -08:00
enums Adding missing files 2015-11-17 20:39:08 -08:00
IntermediateCompilation Fix path to libSystem.Native.a on Linux 2015-11-25 18:13:51 -08:00
ArgumentsParser.cs Refactoring the arguments parser into a separate Parser and refactoring the creation of the NativeCompilerSettings into a method of ArgValues. 2015-11-20 17:23:50 -08:00
ArgValues.cs Refactoring the arguments parser into a separate Parser and refactoring the creation of the NativeCompilerSettings into a method of ArgValues. 2015-11-20 17:23:50 -08:00
DirectoryExtensions.cs Link in msvcrt, Fix output path bug 2015-11-18 17:03:29 -08:00
EnumExtensions.cs Moving validation into NativeCompileSettings. Left argument requirement and argument to enum validation in the ArgumentSyntax delegate 2015-11-20 17:23:50 -08:00
ILCompilerInvoker.cs 1) Adding support to invoke CLang/Linker for Mac 2015-11-25 07:40:10 -08:00
Microsoft.DotNet.Tools.Compiler.Native.xproj Adding to sln 2015-11-17 23:01:48 -08:00
NativeCompiler.cs Code Review Feedback 2015-11-17 20:39:07 -08:00
NativeCompileSettings.cs Let IlcArgs be an opaque string to dotnet native 2015-11-30 15:29:59 -08:00
Program.cs Refactoring the arguments parser into a separate Parser and refactoring the creation of the NativeCompilerSettings into a method of ArgValues. 2015-11-20 17:23:50 -08:00
project.json 1) Adding support to invoke CLang/Linker for Mac 2015-11-25 07:40:10 -08:00
README.md Adding Readme.md 2015-11-18 00:34:09 -08:00
RuntimeExtensions.cs Adding missing files 2015-11-17 20:39:08 -08:00
RuntimeInformationExtensions.cs Adding missing files 2015-11-17 20:39:08 -08:00

dotnet-compile

NAME dotnet-compile-native -- Compiles IL binaries to native binaries.

SYNOPSIS dotnet compile [options]

DESCRIPTION The compile-native command compiles IL assemblies to native machine code. It is used by dotnet-compile --native.

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 compilerOptions.emitEntryPoint in the project.json.

Output files are written to the child bin folder, which will be created if it doesn't exist. Files will be overwritten as needed.

Options

--appdepsdk <SDK_PATH> Path to custom AppDepSDK

-c, --configuration [debug|release] Build configuration. Defaults to debug.

--ilcargs Custom arguments for the IL Compiler.

--ilcpath <ILC_PATH> Path to a custom ilc.exe

--linklib <LIB_PATH> Path to static lib to link

--logpath <LOG_PATH> Enables logging and writes native compilation logs to the given path.

-m, --mode [cpp|ryujit|custom] Code generation mode. Defaults to ryujit.

-o, --out directoryname Output directory for the native executable.

-r, --reference Path to a managed dll reference for the app.

-t, --temp-out Specifies temporary directory for intermediate files.

-v, --verbose Prints verbose logging information, to follow the flow of execution of the command.