You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -50,6 +50,7 @@ namespace Mono.CSharp
|
||||
{
|
||||
static string windowsMcsPath;
|
||||
static string windowsMonoPath;
|
||||
static string unixMcsCommand;
|
||||
|
||||
Mutex mcsOutMutex;
|
||||
StringCollection mcsOutput;
|
||||
@@ -85,6 +86,13 @@ namespace Mono.CSharp
|
||||
|
||||
if (!File.Exists (windowsMcsPath))
|
||||
throw new FileNotFoundException ("Windows mcs path not found: " + windowsMcsPath);
|
||||
} else {
|
||||
var mscorlibPath = new Uri (typeof (object).Assembly.CodeBase).LocalPath;
|
||||
var unixMcsPath = Path.GetFullPath (Path.Combine (mscorlibPath, "..", "..", "..", "..", "bin", "mcs"));
|
||||
if (File.Exists (unixMcsPath))
|
||||
unixMcsCommand = unixMcsPath;
|
||||
else
|
||||
unixMcsCommand = "mcs";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,7 +181,7 @@ namespace Mono.CSharp
|
||||
mcs.StartInfo.Arguments = "\"" + windowsMcsPath + "\" " +
|
||||
BuildArgs (options, fileNames, ProviderOptions);
|
||||
} else {
|
||||
mcs.StartInfo.FileName="mcs";
|
||||
mcs.StartInfo.FileName=unixMcsCommand;
|
||||
mcs.StartInfo.Arguments=BuildArgs(options, fileNames, ProviderOptions);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user