Skip to content
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

Don't generate code for precached values in the compiled model by default #34412

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Aug 13, 2024

Add --nativeaot CLI option to output the eager code

Part of #33483

@AndriySvyryd AndriySvyryd requested a review from a team August 13, 2024 01:18
@AndriySvyryd AndriySvyryd force-pushed the Issue33483 branch 2 times, most recently from 2dcf94d to c57f84c Compare August 14, 2024 04:24
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I think it's important to add a warning for the new option.

(note also there are build failures)

/// Gets or sets a value indicating whether the generated code should be compatible with NativeAOT.
/// </summary>
/// <value> A value indicating whether the generated code should be compatible with NativeAOT. </value>
public virtual bool ForNativeAot { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine for 9.0, but if we indeed want to vary the behavior of --optimize for NativeAOT/non-NativeAOT, this ideally should be something we infer automatically from the csproj rather than force the user to explicitly specify the switch... Though that can get problematic if this is also needed for precompiled queries with NativeAOT, which AFAIK wouldn't have require any gesture in the csproj.

@AndriySvyryd
Copy link
Member Author

(note also there are build failures)

That's just SQL Server flakiness

…ault

Add --nativeaot CLI option to output the eager code
@AndriySvyryd AndriySvyryd merged commit e468fb7 into main Aug 14, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue33483 branch August 14, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants