-
Notifications
You must be signed in to change notification settings - Fork 424
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
[Bug]: --no-cpp-lines does not work if -g appears later in command line #26577
Comments
I'd consider this to be working as intended, in the sense that we typically process flags in order and permit the effects of the flags to override one another silently. For example Here,
|
@mppf: I've been keeping this tab open to see whether you agreed with this logic or not? |
I'd agree with you that it's working as documented / as intended. I think the resulting situation is confusing. I understand why I suppose that the purpose of tying them together is that we can avoid generating
The point of this is just that it makes the order of I would even posit that |
Summary of Problem
Description:
I'm trying to debug something and need to look at the C code. If I compile with
chpl program.chpl --savec=tmp --no-cpp-lines -g
then I still see the#line
directives. But, if I put the-g
before--no-cpp-lines
then it works.(A bonus task related to this issue would be to come up with a better user-facing name than
-cpp-lines
; that can be misinterpreted as "Show me the C++ lines" but it actually means "Include#line
directives so you see .chpl line numbers").Is this issue currently blocking your progress?
No
Steps to Reproduce
Source Code:
any
Compile command:
see above
Associated Future Test(s):
TODO
Configuration Information
chpl version 2.3.0
The text was updated successfully, but these errors were encountered: