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

rewriter: warn on multiple compile commands per src and truncate to first one (reopened #398) #402

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

kkysen
Copy link
Contributor

@kkysen kkysen commented Oct 1, 2024

We discussed this separately, and besides just cases like dav1d where this is done for templating reasons, this is also done in other places, I think for static and dynamic libraries maybe? Given that, it's simpler to just use the first compile command and emit a warning about it. We already emit warnings on other things that might be an issue (e.x. unsupported variadic function pointers), so I think this is okay.

I accidentally merged #398 into a non-main branch. This PR is into main directly, and I'll merge it right away since #398 was already approved.

@kkysen kkysen merged commit 14dcd2e into main Oct 1, 2024
34 checks passed
@kkysen kkysen deleted the kkysen/first-compile-command-per-src branch October 1, 2024 14:12
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.

rewriter: assert(comp_cmds.size() == 1) fails on templated files like in dav1d
1 participant