Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit bb71f70

Browse files
ojedaDarksonn
authored andcommitted
FROMLIST: kbuild: rust: make command for RUSTC_VERSION_TEXT closer to the CC one
`CC_VERSION_TEXT` is defined as: CC_VERSION_TEXT = $(subst $(pound),,$(shell LC_ALL=C $(CC) --version 2>/dev/null | head -n 1)) Make `RUSTC_VERSION_TEXT` closer to that, i.e. add `LC_ALL=C` and `| head -n 1` in case it matters in the future, and for consistency. This reduces the difference in the next commit. Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Link: https://lore.kernel.org/r/20240808221138.873750-3-ojeda@kernel.org Change-Id: Iad713ad25e917e2ae480b5c5b290b729d0fdec8c Signed-off-by: Alice Ryhl <aliceryhl@google.com>
1 parent f4dd34b commit bb71f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ config RUST
19301930
config RUSTC_VERSION_TEXT
19311931
string
19321932
depends on RUST
1933-
default "$(shell,$(RUSTC) --version 2>/dev/null)"
1933+
default "$(shell,LC_ALL=C $(RUSTC) --version 2>/dev/null | head -n 1)"
19341934

19351935
config BINDGEN_VERSION_TEXT
19361936
string

0 commit comments

Comments
 (0)