Skip to content

Commit bc479a5

Browse files
committed
rust: Makefile: simplify to simply expanded variables
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 7982d7d commit bc479a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ quiet_cmd_rustc_library = $(if $(skip_clippy),RUSTC,$(RUSTC_OR_CLIPPY_QUIET)) L
305305
$(if $(rustc_objcopy),;$(OBJCOPY) $(rustc_objcopy) $@)
306306

307307
# `$(rust_flags)` is passed in case the user added `--sysroot`.
308-
rustc_sysroot = $(shell $(RUSTC) $(rust_flags) --print sysroot)
309-
rustc_host_target = $(shell $(RUSTC) --version --verbose | grep -F 'host: ' | cut -d' ' -f2)
308+
rustc_sysroot := $(shell $(RUSTC) $(rust_flags) --print sysroot)
309+
rustc_host_target := $(shell $(RUSTC) --version --verbose | grep -F 'host: ' | cut -d' ' -f2)
310310
RUST_LIB_SRC ?= $(rustc_sysroot)/lib/rustlib/src/rust/library
311311

312312
rust-analyzer:

0 commit comments

Comments
 (0)