Skip to content

Commit f53aeb7

Browse files
committed
rust: hide RUST_BUILD_ASSERT_* menu when CONFIG_RUST is off
Signed-off-by: Gary Guo <[email protected]>
1 parent 9da4f71 commit f53aeb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,6 +2645,7 @@ choice
26452645
prompt "Build-time assertions"
26462646
default RUST_BUILD_ASSERT_ALLOW if RUST_OPT_LEVEL_0
26472647
default RUST_BUILD_ASSERT_DENY if !RUST_OPT_LEVEL_0
2648+
depends on RUST
26482649
help
26492650
Controls how are `build_error!` and `build_assert!` handled during build.
26502651

0 commit comments

Comments
 (0)