-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add --force-output-type option #5575
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
9b9e9e3
to
b263c65
Compare
This looks correct and also like a reasonable thing to add. But there was some debate on this in that issue, let's wait for feedback from @juj and others. Also, this will need tests. Can add in |
+1, I think this is a good thing to have, and I also like this name for it, over the other ideas in #4841 |
Make sure to change the merge target branch to |
emcc.py
Outdated
elif '.' in target: | ||
final_suffix = target.split('.')[-1] | ||
else: | ||
final_suffix = '' |
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.
For this case in particular, it would be good to add a comment about what this does. I presume it will build to an object file? (same as .o
?)
b263c65
to
7f85c83
Compare
7f85c83
to
a52f5d7
Compare
Tests added. |
Any plans for merging this PR? I've run into the same issue as others in #4841 and would love to have this fix available. |
Currently this PR seems to silently ignore |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Looks like this was accidentally abandoned; can we revisit / land it? |
I think this feature landed as |
Huh, I'll have to check. I've grepped |
Ah, I guess i forgot to update the documentation. Sorry about that. |
No problem at all. But yeah, it would be helpful to add it. Maybe emcc.py could use one of those argument parsers that auto-generate |
That would be great! IIRC i've tried it a few times in the past and always given up.. but I assume its not completely impossible. |
(One problem I seem to remember is that emcc passes any arguments it doesn't understand directly to clang.. also the ordering of flags and non-flags is import: e.g. |
Right, but |
I meant the use an auto-generated option parser (which comes with auto-generated help docs) its tricky in situations like emcc for various reasons. The main pitfalls/limitation that I remember are the two I mention above. Those make it hard to use I'm not saying its impossible, just that have tried and failed in the past. |
Yeah that's reasonable; just thought it might help to automate some work, but I recognise it might cause more problems than it solves. |
Fixes #4841