We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c925b0e commit 4b415dfCopy full SHA for 4b415df
cmake/modules/kernel.cmake
@@ -142,8 +142,12 @@ enable_language(ASM)
142
# Verify that the toolchain can compile a dummy file, if it is not we
143
# won't be able to test for compatibility with certain C flags.
144
zephyr_check_compiler_flag(C "" toolchain_is_ok)
145
+set(log_file "CMakeConfigureLog.yaml")
146
+if(CMAKE_VERSION VERSION_LESS "3.26.0")
147
+ set(log_file "CMakeError.log")
148
+endif()
149
assert(toolchain_is_ok "The toolchain is unable to build a dummy C file.\
- Move ${USER_CACHE_DIR}, re-run and look at CMakeError.log")
150
+ Move ${USER_CACHE_DIR}, re-run and look at ${log_file}")
151
152
include(${ZEPHYR_BASE}/cmake/target_toolchain_flags.cmake)
153
0 commit comments