Skip to content

Commit 7982d7d

Browse files
committed
rust: Makefile: remove SECONDEXPANSION
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent ad6c64e commit 7982d7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rust/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,16 +338,14 @@ $(objtree)/rust/kernel.o: $(srctree)/rust/kernel/lib.rs $(objtree)/rust/alloc.o
338338
$(objtree)/rust/bindings_helpers_generated.rs FORCE
339339
$(call if_changed_dep,rustc_library)
340340

341-
# Targets that need to expand twice
342-
.SECONDEXPANSION:
343341
$(objtree)/rust/core.o: private skip_clippy = 1
344342
$(objtree)/rust/core.o: private skip_flags = -Dunreachable_pub --edition=2021
345343
$(objtree)/rust/core.o: private rustc_target_flags = $(core-cfgs) --edition=2018
346-
$(objtree)/rust/core.o: $$(RUST_LIB_SRC)/core/src/lib.rs FORCE
344+
$(objtree)/rust/core.o: $(RUST_LIB_SRC)/core/src/lib.rs FORCE
347345
$(call if_changed_dep,rustc_library)
348346

349347
rustdoc-core: private rustc_target_flags = $(core-cfgs)
350-
rustdoc-core: $$(RUST_LIB_SRC)/core/src/lib.rs FORCE
348+
rustdoc-core: $(RUST_LIB_SRC)/core/src/lib.rs FORCE
351349
$(call if_changed,rustdoc)
352350

353351
endif # CONFIG_RUST

0 commit comments

Comments
 (0)