Deprecate UseFastPDBLinking

This is no longer supported in VS2026
This commit is contained in:
2025-12-06 00:03:42 +02:00
parent 7e75aa53ac
commit fa74b6094e
2 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ namespace Flax.Build.NativeCpp
/// <summary>
/// Hints to use fast PDB linking.
/// </summary>
[Obsolete("Not supported in Visual Studio 2026 or later toolchain")]
public bool UseFastPDBLinking = false;
/// <summary>
@@ -114,6 +115,7 @@ namespace Flax.Build.NativeCpp
/// <inheritdoc />
public object Clone()
{
#pragma warning disable CS0618 // X is obsolete
var clone = new LinkEnvironment
{
Output = Output,
@@ -127,6 +129,7 @@ namespace Flax.Build.NativeCpp
LinkAsConsoleProgram = LinkAsConsoleProgram,
GenerateDocumentation = GenerateDocumentation
};
#pragma warning restore CS0618 // X is obsolete
clone.InputFiles.AddRange(InputFiles);
clone.DocumentationFiles.AddRange(DocumentationFiles);
clone.InputLibraries.AddRange(InputLibraries);

View File

@@ -950,10 +950,12 @@ namespace Flax.Build.Platforms
if (linkEnvironment.DebugInformation)
{
// 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");
}
#pragma warning restore CS0618 // X is obsolete
else if (linkEnvironment.UseFullDebugInformation)
{
args.Add("/DEBUG:FULL");