support project.json compilationOptions.debugType in fsc
it's used only if set, default is old behaviour (debug enabled only on win)
This commit is contained in:
parent
7da4573613
commit
c39678d3cb
1 changed files with 17 additions and 6 deletions
|
@ -104,15 +104,26 @@ namespace Microsoft.DotNet.Tools.Compiler.Fsc
|
||||||
allArgs.Add($"--out:{outputName}");
|
allArgs.Add($"--out:{outputName}");
|
||||||
}
|
}
|
||||||
|
|
||||||
//debug info (only windows pdb supported, not portablepdb)
|
//let's pass debugging type only if options.DebugType is specified, until
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
//portablepdb are confirmed to work.
|
||||||
|
//so it's possibile to test portable pdb without breaking existing build
|
||||||
|
if (string.IsNullOrEmpty(commonOptions.DebugType))
|
||||||
{
|
{
|
||||||
allArgs.Add("--debug");
|
//debug info (only windows pdb supported, not portablepdb)
|
||||||
//TODO check if full or pdbonly
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
allArgs.Add("--debug:pdbonly");
|
{
|
||||||
|
allArgs.Add("--debug");
|
||||||
|
//TODO check if full or pdbonly
|
||||||
|
allArgs.Add("--debug:pdbonly");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
allArgs.Add("--debug-");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
allArgs.Add("--debug-");
|
{
|
||||||
|
allArgs.Add("--debug");
|
||||||
|
allArgs.Add($"--debug:{commonOptions.DebugType}");
|
||||||
|
}
|
||||||
|
|
||||||
// Default options
|
// Default options
|
||||||
allArgs.Add("--noframework");
|
allArgs.Add("--noframework");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue