Skip to content

Commit 30a6a4c

Browse files
committed
cmake: Avoid appearing to support targets with dynamic timers
The code conditionally compiles against building on systems with dynami timers. Until this support can be added, be sure to not define `RUST_SUPPORTED` on these targets. Signed-off-by: David Brown <[email protected]>
1 parent b765109 commit 30a6a4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Kconfig

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ menu "Rust Language Support"
77

88
config RUST_SUPPORTED
99
bool
10-
default y if (CPU_CORTEX_M || \
11-
(RISCV && !RISCV_ISA_RV32E && !RISCV_ISA_RV128I))
10+
default y if ((CPU_CORTEX_M || \
11+
(RISCV && !RISCV_ISA_RV32E && !RISCV_ISA_RV128I)) && \
12+
!TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
1213
help
1314
Selected for platforms that have support for Rust.
1415

0 commit comments

Comments
 (0)