diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-11-10 12:29:10 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-11-10 12:32:26 +0100 |
commit | 71a9c492b8ac7d9f33a92327d43efcb0e4617243 (patch) | |
tree | 917d988ae57f59dcbbd3096b0c59c8d047ce029a | |
parent | 74a2fb369c9ca7b3b423723926626fb0760abb29 (diff) |
force --std=gnu89 for clang (and gcc), properly
This implements 3a4860a751980b566b44d57cde188292df5e8726 in the proper place.
Change-Id: I7b60602933819561d0bff5e72dcd5ee8986f63c0
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 1b2ceebfbfcf..b6d973536113 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -107,6 +107,10 @@ gb_CXX03FLAGS := -std=gnu++98 -pedantic-errors -Wno-long-long \ -Wno-variadic-macros -Wno-non-virtual-dtor -Wno-deprecated-declarations endif +# On Windows MSVC only supports C90 so force gnu89 (especially in clang) to +# to catch potential gnu89/C90 incompatibilities locally. +gb_CFLAGS_COMMON += -std=gnu89 + ifeq ($(ENABLE_LTO),TRUE) ifeq ($(COM_GCC_IS_CLANG),TRUE) gb_LTOFLAGS := -flto |