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

Make DNNE build incrementally #172

Merged
merged 6 commits into from Jul 19, 2023

Conversation

jtschuster
Copy link
Contributor

MSBuild is annoying and this is required to build incrementally. MSBuild will compare the oldest output to the newest input by default, and dnne.h from the nuget package is always going to be older than the generated header, so it'll never build incrementally. We need to create a 1:1 mapping from input item to output item, but this can ONLY be done when the output property is a transformation of the input dotnet/msbuild#7021.

All of the output filenames are the same except for DnneGeneratedSourceFile. If we change that to $(DnneNativeExportsBinaryName).h (binaryname.h) instead of $(DnneGeneratedOutputPath)/$(TargetName).g.c we could make it a bit simpler by avoiding the extra "OutputFileName" metadata.

@AaronRobinsonMSFT
Copy link
Owner

@jtschuster I fixed the workflows so the CI would work. Seems like there are some issues with these changes. Let me know if you want some help investigating them.

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit b691fd4 into AaronRobinsonMSFT:master Jul 19, 2023
6 checks passed
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.

None yet

2 participants