fix _Static_assert/Thread_local -Wpre-c11-compat build error with clang. (#339)

This commit is contained in:
David CARLIER
2025-03-15 11:10:00 +00:00
committed by GitHub
parent 7e1dcac7f0
commit 56b41c36a3

View File

@@ -107,7 +107,7 @@ class ClangToolchain(toolchain.Toolchain):
self.cflags += ['-w']
self.cxxflags = list(self.cflags)
self.cflags += ['-std=c11']
self.cflags += ['-std=c11', '-Wno-pre-c11-compat']
if self.target.is_macos() or self.target.is_ios():
self.cxxflags += ['-std=c++14', '-stdlib=libc++']
else: