Add support --ilcsdkpath to allow ILCompiler to consume a custom build of ILCompiler.SDK
This commit is contained in:
parent
3395b43bd9
commit
57cbc119de
10 changed files with 67 additions and 27 deletions
|
@ -19,7 +19,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
private readonly string cLibsFlags = "-lm -ldl";
|
||||
private readonly string cflags = "-g -lstdc++ -lrt -Wno-invalid-offsetof -pthread";
|
||||
|
||||
private readonly string[] libs = new string[]
|
||||
private readonly string[] IlcSdkLibs = new string[]
|
||||
{
|
||||
"libbootstrappercpp.a",
|
||||
"libPortableRuntime.a",
|
||||
|
@ -79,10 +79,10 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
// Add Stubs
|
||||
argsList.Add(Path.Combine(config.AppDepSDKPath, "CPPSdk/ubuntu.14.04/lxstubs.cpp"));
|
||||
|
||||
// Libs
|
||||
foreach (var lib in libs)
|
||||
// ILC SDK Libs
|
||||
foreach (var lib in IlcSdkLibs)
|
||||
{
|
||||
var libPath = Path.Combine(config.IlcPath, lib);
|
||||
var libPath = Path.Combine(config.IlcSdkPath, lib);
|
||||
argsList.Add(libPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue