We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc
clean
1 parent ba4eb7a commit 166d098Copy full SHA for 166d098
1 file changed
Makefile
@@ -1162,7 +1162,11 @@ export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
1162
ifeq ($(KBUILD_EXTMOD),)
1163
core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/
1164
core-$(CONFIG_BLOCK) += block/
1165
-core-$(CONFIG_RUST) += rust/
+
1166
+# Keep this one as an `ifdef` block since its `Makefile` runs `rustc`.
1167
+ifdef CONFIG_RUST
1168
+core-y += rust/
1169
+endif
1170
1171
vmlinux-dirs := $(patsubst %/,%,$(filter %/, \
1172
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
0 commit comments