-
Notifications
You must be signed in to change notification settings - Fork 844
Fix AST compilation in netcoreapp #7912
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
Conversation
|
/azp run |
|
Commenter does not have sufficient privileges for PR 7912 in repo dotnet/fsharp |
TIHan
left a comment
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.
IMHO, we should not expose PrimaryAssembly. Instead, we should be thinking about trying to remove PrimaryAssembly altogether and getting the compiler to be framework agnostic.
|
After talking with @terrajobst , having the notion of a |
That's fair, however the scope of this PR is to bring the ast compiler on par with the cli arguments, as they currently stand. |
663d0c0 to
3c4e39c
Compare
|
Rebased on top of latest changes |
3c4e39c to
d1b5137
Compare
d1b5137 to
9b62ae4
Compare
9b62ae4 to
ec43de5
Compare
bb8b53e to
77727b1
Compare
|
@eiriktsarpalis is this work dependent on #8043? |
|
Makes sense. |
|
Are you planning on merging #8043 for 5.0? If not I think I should just go ahead and merge this, since it fixes a broken component of the compiler. |
|
I think that's @TIHan's call, but conservatively I'm going to estimate that it won't get in for F# 5. |
… implementation with cli pipeline
This reverts commit 596d6c1c4a20581f5f9ce861629b14077adfebed.
77727b1 to
927a8f5
Compare
|
I've rebased on top of latest master. |
To expand on this: you should chat with @jaredpar and how Roslyn solved this. AFAIK the core assembly is determined by picking the assembly that in turn has no references. If checking that is expensive, you could try a fast pass by checking for |
The core assembly has no references and contains
FWIW: This check hasn't ever come up as a perf issue for us |
|
Thanks for this @eiriktsarpalis |
The FSCS untyped AST compilation facility is currently broken in .NET Core since the implementation is hardcoding the target profile to mscorlib.
This PR:
PrimaryAssemblyparameter in the AST Compile* functions.