-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make default rooting behavior consistent #3124
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -639,10 +639,10 @@ protected int SetupContext (ILogger? customLogger = null) | |
return -1; | ||
} | ||
|
||
AssemblyRootMode rmode = AssemblyRootMode.Default; | ||
AssemblyRootMode rmode = AssemblyRootMode.AllMembers; | ||
var rootMode = GetNextStringValue (); | ||
if (rootMode != null) { | ||
var parsed_rmode = ParseAssemblyRootsMode (rootMode); | ||
var parsed_rmode = ParseAssemblyRootMode (rootMode); | ||
if (parsed_rmode is null) | ||
return -1; | ||
|
||
|
@@ -1115,11 +1115,9 @@ static string[] ReadLines (string file) | |
return null; | ||
} | ||
|
||
AssemblyRootMode? ParseAssemblyRootsMode (string s) | ||
AssemblyRootMode? ParseAssemblyRootMode (string s) | ||
{ | ||
switch (s.ToLowerInvariant ()) { | ||
case "default": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any chance we get this on the command line? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's definitely possible - someone could have set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's OK to break this as well - especially since this is 8.0 only and we will have TFM-specific linker then. |
||
return AssemblyRootMode.Default; | ||
case "all": | ||
return AssemblyRootMode.AllMembers; | ||
case "visible": | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace ILLink.RoslynAnalyzer.Tests.Inheritance.Interfaces | ||
{ | ||
public sealed partial class BaseProvidesInterfaceEdgeCaseTests : LinkerTestBase | ||
{ | ||
|
||
protected override string TestSuiteName => "Inheritance.Interfaces.BaseProvidesInterfaceEdgeCase"; | ||
|
||
[Fact] | ||
public Task BaseProvidesInterfaceMethodCircularReference () | ||
{ | ||
return RunTest (allowMissingWarnings: true); | ||
} | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbomer Android apps are actually class libraries, there is no
static void Main()
because Android's entry point is either anAndroid.App.Application
orAndroid.App.Activity
.I think this change causes:
Should I do this in the Android workload?