Merge pull request #3989 from tmat/AnyDebugType

Pass debugType thru to the command line compiler
This commit is contained in:
Tomáš Matoušek 2016-08-04 13:14:42 -07:00 committed by GitHub
commit 8f00e03c43

View file

@ -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;
}