Merge "Add pattern to check for GCC 4.6"
This commit is contained in:
@@ -118,7 +118,7 @@ TARGET_GLOBAL_CFLAGS += \
|
|||||||
# We cannot turn it off blindly since the option is not available
|
# We cannot turn it off blindly since the option is not available
|
||||||
# in gcc-4.4.x. We also want to disable sincos optimization globally
|
# in gcc-4.4.x. We also want to disable sincos optimization globally
|
||||||
# by turning off the builtin sin function.
|
# by turning off the builtin sin function.
|
||||||
ifneq ($(filter 4.6.%, $(shell $(TARGET_CC) --version)),)
|
ifneq ($(filter 4.6 4.6.%, $(shell $(TARGET_CC) --version)),)
|
||||||
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin \
|
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin \
|
||||||
-fno-strict-volatile-bitfields
|
-fno-strict-volatile-bitfields
|
||||||
endif
|
endif
|
||||||
|
@@ -96,7 +96,7 @@ TARGET_GLOBAL_CFLAGS += \
|
|||||||
# This warning causes dalvik not to build with gcc 4.6.x and -Werror.
|
# This warning causes dalvik not to build with gcc 4.6.x and -Werror.
|
||||||
# We cannot turn it off blindly since the option is not available
|
# We cannot turn it off blindly since the option is not available
|
||||||
# in gcc-4.4.x.
|
# in gcc-4.4.x.
|
||||||
ifneq ($(filter 4.6.%, $(shell $(TARGET_CC) --version)),)
|
ifneq ($(filter 4.6 4.6.%, $(shell $(TARGET_CC) --version)),)
|
||||||
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable \
|
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable \
|
||||||
-fno-strict-volatile-bitfields
|
-fno-strict-volatile-bitfields
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user