-
Notifications
You must be signed in to change notification settings - Fork 270
Fix line-tables-only on macOS 15 #739
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
base: master
Are you sure you want to change the base?
Fix line-tables-only on macOS 15 #739
Conversation
...ok |
127c65b
to
a3c48a6
Compare
@madsmtm I am losing my mind that this was effectively the only problem. |
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.
I don't know why that would be either. Maybe it's meant to be like "-g
enables debuginfo", and "-g1
tweaks debuginfo, if it's enabled"?
Similar to how rustc's -Cdwarf-version
doesn't have any effect without -Cdebuginfo
.
cc::Build::new() | ||
.opt_level(0) | ||
.debug(false) | ||
.flag("-g1") |
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.
Nit: Really should be:
.flag("-g1") | |
.flag("-gline-tables-only") |
For clarity.
(If that is supported by all tested compiler versions)
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.
Tried that.
Breaks on half the platforms because that's a clang-only option and gcc doesn't support it, and cc will opportunistically find and use gcc instead.
a3c48a6
to
1cea408
Compare
Fixes #730 for good.
There was a subtle change in how appleclang interprets command lines between Xcode 16.2 and Xcode 16.4, which caused the cc-rs settings of first setting
debug(false)
and then passing an explicit debuginfo setting to fail. This might have been inherited from upstream clang, and that is unclear to me. In any case it seems we can just pass-g1
and that works fine.