Fix: suppress Javelin test compilation via template dead-code elimination

This commit is contained in:
afiqzudinhadi 2026-06-22 23:02:16 +08:00
parent 13e873414b
commit 4f1a402240
2 changed files with 41 additions and 0 deletions

View file

@ -220,6 +220,10 @@ if(CONFIG_ZMK_JAVELIN_STENO)
JAVELIN_BOARD_CONFIG=<stddef.h>
M_PI=3.14159265358979323846
)
# Suppress test compilation: Javelin's TEST_BEGIN/TEST_END macros
# compile test bodies even without RUN_TESTS. Some tests reference
# RUN_TESTS-only APIs. Override macros via include to dead-code them.
zephyr_library_compile_options(-include ${CMAKE_CURRENT_LIST_DIR}/include/zmk_javelin_steno/suppress_tests.h)
target_sources(app PRIVATE
${ZMK_BEHAVIOR_SRC}