Deprecate UseFastPDBLinking
This is no longer supported in VS2026
This commit is contained in:
@@ -59,6 +59,7 @@ namespace Flax.Build.NativeCpp
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Hints to use fast PDB linking.
|
/// Hints to use fast PDB linking.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Not supported in Visual Studio 2026 or later toolchain")]
|
||||||
public bool UseFastPDBLinking = false;
|
public bool UseFastPDBLinking = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -114,6 +115,7 @@ namespace Flax.Build.NativeCpp
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public object Clone()
|
public object Clone()
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0618 // X is obsolete
|
||||||
var clone = new LinkEnvironment
|
var clone = new LinkEnvironment
|
||||||
{
|
{
|
||||||
Output = Output,
|
Output = Output,
|
||||||
@@ -127,6 +129,7 @@ namespace Flax.Build.NativeCpp
|
|||||||
LinkAsConsoleProgram = LinkAsConsoleProgram,
|
LinkAsConsoleProgram = LinkAsConsoleProgram,
|
||||||
GenerateDocumentation = GenerateDocumentation
|
GenerateDocumentation = GenerateDocumentation
|
||||||
};
|
};
|
||||||
|
#pragma warning restore CS0618 // X is obsolete
|
||||||
clone.InputFiles.AddRange(InputFiles);
|
clone.InputFiles.AddRange(InputFiles);
|
||||||
clone.DocumentationFiles.AddRange(DocumentationFiles);
|
clone.DocumentationFiles.AddRange(DocumentationFiles);
|
||||||
clone.InputLibraries.AddRange(InputLibraries);
|
clone.InputLibraries.AddRange(InputLibraries);
|
||||||
|
|||||||
@@ -951,10 +951,12 @@ namespace Flax.Build.Platforms
|
|||||||
if (linkEnvironment.DebugInformation)
|
if (linkEnvironment.DebugInformation)
|
||||||
{
|
{
|
||||||
// Generate debug information
|
// Generate debug information
|
||||||
if (Toolset != WindowsPlatformToolset.v140 && linkEnvironment.UseFastPDBLinking)
|
#pragma warning disable CS0618 // X is obsolete
|
||||||
|
if (Toolset >= WindowsPlatformToolset.v141 && Toolset <= WindowsPlatformToolset.v144 && linkEnvironment.UseFastPDBLinking)
|
||||||
{
|
{
|
||||||
args.Add("/DEBUG:FASTLINK");
|
args.Add("/DEBUG:FASTLINK");
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CS0618 // X is obsolete
|
||||||
else if (linkEnvironment.UseFullDebugInformation)
|
else if (linkEnvironment.UseFullDebugInformation)
|
||||||
{
|
{
|
||||||
args.Add("/DEBUG:FULL");
|
args.Add("/DEBUG:FULL");
|
||||||
|
|||||||
Reference in New Issue
Block a user