Merge pull request #264 from brthor/small_fixes
Small fixes for dotnet compile --native
This commit is contained in:
commit
0b3ea258e7
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
private readonly string CompilerOutputExtension = "";
|
||||
|
||||
// TODO: debug/release support
|
||||
private readonly string cflags = "-lstdc++ -lpthread -ldl -lm";
|
||||
private readonly string cflags = "-lstdc++ -lpthread -ldl -lm -lrt";
|
||||
|
||||
private readonly string[] libs = new string[]
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
// Native Args
|
||||
var native = app.Option("-n|--native", "Compiles source to native machine code.", CommandOptionType.NoValue);
|
||||
var arch = app.Option("-a|--arch <ARCH>", "The architecture for which to compile. x64 only currently supported.", CommandOptionType.SingleValue);
|
||||
var ilcArgs = app.Option("--ilc-args <ARGS>", "String to pass directory to ilc in native compilation.", CommandOptionType.SingleValue);
|
||||
var ilcArgs = app.Option("--ilcargs <ARGS>", "String to pass directory to ilc in native compilation.", CommandOptionType.SingleValue);
|
||||
var cppMode = app.Option("--cpp", "Flag to do native compilation with C++ code generator.", CommandOptionType.NoValue);
|
||||
|
||||
app.OnExecute(() =>
|
||||
|
|
Loading…
Reference in a new issue