-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Cleanup: Get rid of -static-libstdc++ argument unused warning #89983
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit ebd674e has been approved by |
@bors rollup=iffy (may timeout due to LLVM rebuilds as we invalidate caches) |
⌛ Testing commit ebd674e with merge d5315046e57455765cf4502a15fd3bd25ef3e9b8... |
💥 Test timed out |
@bors retry |
⌛ Testing commit ebd674e with merge 5e22860c3d3dcc1195b0a38ee482d3e150e5d78f... |
💥 Test timed out |
This time the LLVM build for aarch64-apple-darwin was even slower.
Usually that build takes about 500 seconds (fully cached). No idea what is going on with sccache here. |
Hm, it doesn't seem like we dump sccache stats on failed builds unfortunately. Maybe sccache fails to cache or something like that without this argument? That would be unexpected, IMO, but who knows...? |
The cache worked fine for x86_64-apple-darwin and the other builds though. The funny thing is that
So it should actually be completely disabled for Apple. But not really worth it to investigate further right now just for the log cosmetics. @rustbot label -S-waiting-on-review +S-waiting-on-author |
@bors r- (bors having hiccup and trying to retest failed prs) |
…ark-Simulacrum bootstrap: tidy up flag handling for llvm build This tidies up the logic in `src/bootstrap/native.rs` such that: - `CMAKE_*_LINKER_FLAGS` is not overridden if we add to it twice. - `CMAKE_*_FLAGS` also include the standard `*FLAGS` environment variables, which CMake respects when we _don't_ set `CMAKE_*_FLAGS`. - `llvm.ldflags` from `config.toml` appends to the ldflags Rust's bootstrap logic adds, rather than replacing them. It also takes a second stab at rust-lang#89983 by moving `-static-libstdc++` to just be passed as a linker flag, since that's what it is. Fixes rust-lang#93880. Fixes rust-lang#70468. Closes rust-lang#89983.
Building llvm with llvm.static-libstdcpp enabled leads to lots of warnings like this as this is linker-only option:
Just setting it for linking shared libraries and executables gets rid of the warning.
@rustbot label +A-rustbuild +C-cleanup +T-infra