Merge pull request #3989 from tmat/AnyDebugType
Pass debugType thru to the command line compiler
This commit is contained in:
commit
8f00e03c43
1 changed files with 4 additions and 6 deletions
|
@ -198,19 +198,17 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
|
|||
commonArgs.Add("-t:library");
|
||||
}
|
||||
|
||||
string debugType;
|
||||
if (string.IsNullOrEmpty(options.DebugType))
|
||||
{
|
||||
commonArgs.Add(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
|
||||
? "-debug:full"
|
||||
: "-debug:portable");
|
||||
debugType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "full" : "portable";
|
||||
}
|
||||
else
|
||||
{
|
||||
commonArgs.Add(options.DebugType == "portable"
|
||||
? "-debug:portable"
|
||||
: "-debug:full");
|
||||
debugType = options.DebugType;
|
||||
}
|
||||
|
||||
commonArgs.Add("-debug:" + debugType);
|
||||
return commonArgs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue