-
Notifications
You must be signed in to change notification settings - Fork 13.3k
change configure defaults #37263
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
Comments
No way! |
I can see your argument, but I counter with this: as someone new to Rust who went straight into trans, I remember the huge amount of frustration involved in finding those in the first place. Even people on IRC weren't specifically sure which ones were needed. Perhaps there need to be profiles or something: I'm not particularly attached to my list, either. Perhaps cut out the debug and debuginfo ones and just turn on the asserts is more reasonable? |
@camlorn One more aspect is that |
@petrochenkov is right where the current defaults are optimized for "I want a fast build of rustc". E.g. those who are just simply building from source or packagers for example. @camlorn is right though that we don't have an ergonomic switch for "I'm developing rustc" which has all those nice default options. We had a bug for this long ago but I kinda forgot where it went. The idea though was that you'd so something like:
or something like that. That way we can tweak over time what it means to be within that profile and we could add various other profiles as well (likely with the defaults remaining as they are today, ish) |
yeah, I'd be okay with profiles. The real issue here is that it's very non-obvious which you need. @petrochenkov's comment about duplicate options actually helps make my point: the options I'm using were the options I was given via the #rustc IRC channel. It's good to know that I only need two of them, but I'd never have found that out on my own. |
I actually wrote about this a few little while ago. Related: is |
@caipre I don't think that make is preferred to Rustbuild, it's just that Rustbuild isn't as well documented and what have you. At some point this transition will be complete, I imagine, and make will be deprecated. But I'm not well informed on this issue, and my choice is based off what people on IRC (primarily @eddyb) gave me. |
@camlorn: Hmm, not sure why my site wouldn't work with a screen reader. The post doesn't raise any new concerns, it was just echoing the confusion around configuration options and the current build system(s) as it pertains to developer builds. I'm also using |
@caipre I've been seeing this more than a bit lately, primarily in the Rust community. I don't know which site generator or platform to blame, or even if it's a screen reader bug or not, but it's extremely annoying at best and causes me to skip the articles. You can catch me on IRC sometimes, if you want to investigate further. |
@camlorn I wonder if markdown generators put in |
@camlorn Sorry to hijack the thread. I'll investigate more offline. |
@eddyb @caipre |
So with rustbuild, the defaults are still mainly the same, but the options are well-documented when going through |
99% of the time, you want the following configure command:
./configure --enable-debug --enable-debuginfo --enable-optimize --enable-llvm-assertions --enable-debug-assertions
. Current configure does not make these the default.The consequences are twofold:
--enable-llvm-assertions
at least that what you're asking about is a configure script option.I suggest changing these to match the above command, then modifying the release infrastructure to turn them off for release mode. It may also be beneficial to add a
--releasemode
option that does so automatically for easy local testing.The text was updated successfully, but these errors were encountered: