Skip to content

Commit 9fd4e57

Browse files
committed
rust: fix double build of kernel.o
Reported-by: Sven Van Asbroeck <[email protected]> Signed-off-by: Gary Guo <[email protected]>
1 parent 776af46 commit 9fd4e57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ extra-$(CONFIG_RUST) += exports_alloc_generated.h exports_kernel_generated.h
1111

1212
ifndef CONFIG_RUST_BUILD_ASSERT_DENY
1313
obj-$(CONFIG_RUST) += build_error.o
14+
else
15+
extra-$(CONFIG_RUST) += build_error.o
1416
endif
1517

1618
obj-$(CONFIG_RUST) += exports.o

0 commit comments

Comments
 (0)