Skip to content
Commit 524b72ce authored by Rubin Gerritsen's avatar Rubin Gerritsen Committed by Benjamin Cabé
Browse files

toolchain: llvm: Provide working BUILD_ASSERT macro



The resulting BUILD_ASSERT macro provided by
zephyr/toolchain/gcc.h is defined to be empty, making the macro
useless.

This commit ensures we define it to something that actually
performs a validation. When not compiling for C++ or >=C11,
we rely on that cdefs.h provides _Static_assert.

Signed-off-by: default avatarRubin Gerritsen <rubin.gerritsen@nordicsemi.no>
parent d632b1cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment