Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ Copyright (c) .NET Foundation. All rights reserved.

<PropertyGroup>
<ILLinkTreatWarningsAsErrors Condition=" '$(ILLinkTreatWarningsAsErrors)' == '' ">$(TreatWarningsAsErrors)</ILLinkTreatWarningsAsErrors>
<_ExtraTrimmerArgs>--skip-unresolved true $(_ExtraTrimmerArgs)</_ExtraTrimmerArgs>
<TrimmerSingleWarn Condition=" '$(TrimmerSingleWarn)' == '' ">true</TrimmerSingleWarn>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/tools/illink/src/linker/Linker/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ static void Usage ()
Console.WriteLine (" --custom-data KEY=VALUE Populates context data set with user specified key-value pair");
Console.WriteLine (" --deterministic Produce a deterministic output for modified assemblies");
Console.WriteLine (" --ignore-descriptors Skips reading embedded descriptors (short -z). Defaults to false");
Console.WriteLine (" --skip-unresolved Ignore unresolved types, methods, and assemblies. Defaults to false");
Console.WriteLine (" --skip-unresolved Ignore unresolved types, methods, and assemblies. Defaults to true");
Console.WriteLine (" --output-pinvokes PATH Output a JSON file with all modules and entry points of the P/Invokes found");
Console.WriteLine (" --verbose Log messages indicating progress and warnings");
Console.WriteLine (" --nowarn WARN Disable specific warning messages");
Expand Down
2 changes: 1 addition & 1 deletion src/tools/illink/src/linker/Linker/LinkContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public Pipeline Pipeline {

public bool KeepMembersForDebugger { get; set; } = true;

public bool IgnoreUnresolved { get; set; }
public bool IgnoreUnresolved { get; set; } = true;

public bool EnableReducedTracing { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ interface I
class C<T> where T : I?
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Mono.Linker.Tests.Cases.References;
[NoLinkedOutput]
[SetupCompileBefore ("missing.dll", new[] { "Dependencies/MissingAssembly.cs" })]
[DeleteBefore ("missing.dll")]
[SetupLinkerArgument ("--skip-unresolved", "false")]
public class MissingReferenceInUnusedCodePath
{
public static void Main ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Mono.Linker.Tests.Cases.References;
[NoLinkedOutput]
[SetupCompileBefore ("missing.dll", new[] { "Dependencies/MissingAssembly.cs" })]
[DeleteBefore ("missing.dll")]
[SetupLinkerArgument ("--skip-unresolved", "false")]
public class MissingReferenceInUsedCodePath
{
public static void Main ()
Expand Down