-
Notifications
You must be signed in to change notification settings - Fork 274
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
Fix mono aot build #3122
Fix mono aot build #3122
Conversation
Issue: dotnet/BenchmarkDotNet#2311 - Use the extension props file to set `SelfContained=true` for the autogenerated project. This allows the project to have all the dependencies in the output folder, as required for AOT. - Latest BDN copies the `PackageReferences` from `MicroBenchmarks.csproj` to the generated project. - but it does not copy the version property, thus breaking the build. - Move the version property to a Common.props, so it can be used by the main MicroBenchmarks.csproj, and the autogenerated project.
This depends on dotnet/BenchmarkDotNet#2367 . |
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.
A minor suggestion, otherwise LGTM!
… moved to the template project in BDN
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.
LGTM!
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.
LGTM, and the failures are the same as on main so good to merge. @radical do you have permission to merge? If not, I can go ahead and merge this.
We do need the bdn update though. |
As for the failures, I think it might need a fix like dotnet/runtime@2e873dd . Essentially set |
@LoopedBard3 I only see a nightly nuget pushed - https://github.com/dotnet/BenchmarkDotNet/actions/runs/5532878163/jobs/10095576828 |
|
I think updating to the latest bdn will also run into dotnet/BenchmarkDotNet#2346 . |
The failures on windows are same as dotnet/runtime#88779 . I'm fixing it for wasm with dotnet/runtime@35477aa . I think a similar fix is needed here too - to set |
@radical It does seem that the BDN update is causing us to hit dotnet/BenchmarkDotNet#2346. As we wait for that fix, do we want to get this PR merged so we are closer to being in a good state once the fix is ready? For the DOTNET_ROOT, our MicroBenchmark builds already set the DOTNET_ROOT explicitly on the running machine. We have an issue to fix in the affected areas, #3136. |
Do you mean merge this(#3122), and then continue to wait for BDN update via #3120? |
Pretty much. Merge this #3122 with #3120 coming shortly while we wait for the fix to dotnet/BenchmarkDotNet#2346. Let me know if you don't have merge permissions and I will merge this in. |
ah, looks like I can't merge on Red. |
It was a bad idea and just got reverted: dotnet/BenchmarkDotNet#2365 IMO once #3120 gets merged we should revert this PR too, as it won't be needed anymore and adds some non-trivial complexity to our MSBuild files that are already quite complex (cc @cincuranet ) @radical kudos for finding a quick fix! |
I'll take care of the revert. |
Issue: dotnet/BenchmarkDotNet#2311
PackageReferences
fromMicroBenchmarks.csproj
to the generated project.the main MicroBenchmarks.csproj, and the autogenerated project.