[2/2] eal: temporarily disable standard c atomics support for MSVC
Checks
Commit Message
MSVC will define __STDC_NO_ATOMICS__ until versions of the compiler that
support atomics is released. Currently we use the Preview version of the
compiler so skip the test of __STDC_NO_ATOMICS__ avoiding failure.
This is a temporary change until the required compiler is released
publicly but allows us to establish the MSVC CI pipeline.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/eal/include/rte_stdatomic.h | 2 ++
1 file changed, 2 insertions(+)
@@ -12,9 +12,11 @@
#endif
#ifdef RTE_ENABLE_STDATOMIC
+#ifndef _MSC_VER
#ifdef __STDC_NO_ATOMICS__
#error enable_stdatomic=true but atomics not supported by toolchain
#endif
+#endif
#include <stdatomic.h>