mirror of
https://github.com/mjansson/rpmalloc.git
synced 2026-01-15 19:41:17 +01:00
fix _Static_assert/Thread_local -Wpre-c11-compat build error with clang. (#339)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user