Skip to content

Use shlex instead of shell-words#153436

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
eggyal:shlex-not-shell_words
Mar 5, 2026
Merged

Use shlex instead of shell-words#153436
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
eggyal:shlex-not-shell_words

Conversation

@eggyal
Copy link
Contributor

@eggyal eggyal commented Mar 5, 2026

In #152712, the shell-words crate was introduced as a new dependency of rustc_llvm in order for its build script to parse the output of llvm-config --quote-paths and thereby handle paths containing whitespace; however, as noted by bjorn3, that build script already transitively depends upon the shlex crate (via the cc crate) which provides similar functionality.

This patch is based off (the already-approved) #153419, which would otherwise conflict.

r? ChrisDenton

durin42 and others added 2 commits March 4, 2026 15:48
The build script here wants to sniff for `-stdlib=libc++` but was
missing the leading dashes. We caught this on the Rust/LLVM HEADs
builder which also uses libc++.
@rustbot
Copy link
Collaborator

rustbot commented Mar 5, 2026

The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging.

cc @davidtwco, @wesleywiser

@rustbot
Copy link
Collaborator

rustbot commented Mar 5, 2026

ChrisDenton is not on the review rotation at the moment.
They may take a while to respond.

@ChrisDenton
Copy link
Member

Thanks!

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 5, 2026

📌 Commit f352e74 has been approved by ChrisDenton

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Mar 5, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 5, 2026
…risDenton

Use shlex instead of shell-words

In rust-lang#152712, the [`shell-words`] crate was introduced as a new dependency of `rustc_llvm` in order for its build script to parse the output of `llvm-config --quote-paths` and thereby handle paths containing whitespace; however, as [noted by bjorn3], that build script already transitively depends upon the [`shlex`] crate (via the [`cc`] crate) which provides similar functionality.

This patch is based off (the already-approved) rust-lang#153419, which would otherwise conflict.

[`cc`]: https://crates.io/crates/cc
[noted by bjorn3]: rust-lang#152712 (comment)
[`shell-words`]: https://crates.io/crates/shell-words
[`shlex`]: https://crates.io/crates/shlex

r? ChrisDenton
rust-bors bot pushed a commit that referenced this pull request Mar 5, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #153399 (constify `Vec::{into, from}_raw_parts{_in|_alloc}`)
 - #153436 (Use shlex instead of shell-words)
 - #150845 (bootstrap: minimal fix for ./x install src with build.docs = false)
 - #152906 (Make `const_lit_matches_ty` check literal suffixes for exact type match)
 - #153378 (Rename `QueryCache::iter` to `for_each`)
 - #153386 (Minor query cleanups)
 - #153422 (Add a comment explaining the 'tcx lifetime.)
 - #153435 (Fix obtaining def_id from unresolved segment)
 - #153453 (Fix ICEs due to incomplete typechecking on struct literals with syntax errors.)
@rust-bors rust-bors bot merged commit 77f0241 into rust-lang:main Mar 5, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 5, 2026
rust-timer added a commit that referenced this pull request Mar 5, 2026
Rollup merge of #153436 - eggyal:shlex-not-shell_words, r=ChrisDenton

Use shlex instead of shell-words

In #152712, the [`shell-words`] crate was introduced as a new dependency of `rustc_llvm` in order for its build script to parse the output of `llvm-config --quote-paths` and thereby handle paths containing whitespace; however, as [noted by bjorn3], that build script already transitively depends upon the [`shlex`] crate (via the [`cc`] crate) which provides similar functionality.

This patch is based off (the already-approved) #153419, which would otherwise conflict.

[`cc`]: https://crates.io/crates/cc
[noted by bjorn3]: #152712 (comment)
[`shell-words`]: https://crates.io/crates/shell-words
[`shlex`]: https://crates.io/crates/shlex

r? ChrisDenton
@eggyal eggyal deleted the shlex-not-shell_words branch March 5, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants