Kaydet (Commit) 71a9c492 authored tarafından Luboš Luňák's avatar Luboš Luňák

force --std=gnu89 for clang (and gcc), properly

This implements 3a4860a7 in the proper place.

Change-Id: I7b60602933819561d0bff5e72dcd5ee8986f63c0
üst 74a2fb36
...@@ -107,6 +107,10 @@ gb_CXX03FLAGS := -std=gnu++98 -pedantic-errors -Wno-long-long \ ...@@ -107,6 +107,10 @@ gb_CXX03FLAGS := -std=gnu++98 -pedantic-errors -Wno-long-long \
-Wno-variadic-macros -Wno-non-virtual-dtor -Wno-deprecated-declarations -Wno-variadic-macros -Wno-non-virtual-dtor -Wno-deprecated-declarations
endif 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 ($(ENABLE_LTO),TRUE)
ifeq ($(COM_GCC_IS_CLANG),TRUE) ifeq ($(COM_GCC_IS_CLANG),TRUE)
gb_LTOFLAGS := -flto gb_LTOFLAGS := -flto
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment