Wrong compiler flag check result on Windows LLVM toolchain #831
Labels
area: LLVM
Issues related to LLVM
bug
platform: Windows
Issues related to Zephyr SDK on Windows hosts
Summary
When building Zephyr with Zephyr SDK LLVM toolchain on Windows, CMake compiler flag check function (
check_compiler_flag
) "randomly" returns wrong results.Running CMake twice with the toolchain compatibility database cache cleared before each run, the compiler flag check results differ:
For full log, see https://gist.github.com/stephanosio/515697800f63484dc94568edff48c407.
To reproduce
On Windows:
ZEPHYR_TOOLCHAIN_VARIANT=zephyr-llvm
.collab-sdk-0.18-dev
branch.samples/hello_world
:build
directory, run the following commands twice, observing the CMake run results:Notes
zephyr_check_compiler_flag(C "" result)
differ -- this seems to be completely random:The text was updated successfully, but these errors were encountered: