Skip to content

Commit ffdacf7

Browse files
authored
Merge pull request #281 from nbdd0121/link-time-panic
Fix double build of kernel.o
2 parents 776af46 + 5972f3e commit ffdacf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ extra-$(CONFIG_RUST) += bindings_generated.rs
99
obj-$(CONFIG_RUST) += alloc.o kernel.o
1010
extra-$(CONFIG_RUST) += exports_alloc_generated.h exports_kernel_generated.h
1111

12-
ifndef CONFIG_RUST_BUILD_ASSERT_DENY
12+
ifdef CONFIG_RUST_BUILD_ASSERT_DENY
13+
extra-$(CONFIG_RUST) += build_error.o
14+
else
1315
obj-$(CONFIG_RUST) += build_error.o
1416
endif
1517

0 commit comments

Comments
 (0)