-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable debug info by default #4232
Enable debug info by default #4232
Conversation
Discussed in the toolchain meeting today - we'd like to try having this on by default and see if the cost isn't too high. The nodebug test is a bit verbose, because it doesn't have the `--exclude-dump-file-prefix` that test_file would usually add. Is there a nicer way I could write this test to verify that --no-debug-info does what it's meant to?
Note, I removed the description boilerplate from the top comment. Note nodebug isn't just verbose, it includes your local machine paths; it's host-dependent. Maybe add something like |
Ah, thanks for that! I'll figure out the description template, etc eventually/keep an eye out for that in the future.
Oh, right - good call/catch. Thanks!
Looking into that. I'm a bit of a testing pedant, so would prefer not to commit the change untested, and happy to frontload the test infrastructure improvements necessary to ensure coverage. Ended up that I needed to add generic functionality to file_test_base (since it errors on unknown characters after %) - so allowed derived classes to expose a collection of replacements, and used those... |
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 couple more things to change:
-
testing/file_test/README.md is trying to document syntax, can you add a note about this under where it says "Supported replacements within arguments"?
-
In testing/file_test/testdata, can you add a test similar to
args.carbon
, with something likeARGS: abc %{replacement} %s
?- In
testing/file_test/file_test_base_test.cpp
, if you add the new test file whereargs.carbon
is (the early return), you can validate that the replacement is correctly round tripping. - Note this directory also has an autoupdate script (a more trivial one than toolchain's)
- In
Or really, even just add |
Ah, for sure - thanks for the pointers. Done! |
Just a reminder for the README.md edit, in case it was missed. :) |
Ah, thought I'd done that - sorry I missed it. Added some now. |
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.
Thanks! All looks good here.
Discussed in the toolchain meeting today - we'd like to try having this on by default and see if the cost isn't too high.
The nodebug test is a bit verbose, because it doesn't have the
--exclude-dump-file-prefix
that test_file would usually add. Is there a nicer way I could write this test to verify that --no-debug-info does what it's meant to?