Commit 706cd1e2 by Greg Hartman

Fix go/ab builds for jb-mr1

This forces clang to avoid use init_array for all initialization rather than splitting the initialization between init_array and ctors. Local builds do this anyway, but for some reason the builds on go/ab do not. Setting this flag makes the builds consistent (and unbroken on JB-MR1). I already checked this in on cloud-android-current-release because I wanted to test it before submitting. Bug 25597090 Change-Id: I5a7195ba53531835fb8333b698ed39d21ff847a6 (cherry picked from commit 95c7182f118cc686df27c3f49db7d3c7908e0e59) Reviewed-on: https://swiftshader-review.googlesource.com/4271Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent 135f634e
......@@ -82,7 +82,7 @@ COMMON_SRC_FILES += \
OpenGL/common/Object.cpp \
OpenGL/common/MatrixStack.cpp \
COMMON_CFLAGS := -DLOG_TAG=\"swiftshader\" -Wno-unused-parameter -Wno-implicit-exception-spec-mismatch -Wno-overloaded-virtual -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -std=c++11
COMMON_CFLAGS := -DLOG_TAG=\"swiftshader\" -Wno-unused-parameter -Wno-implicit-exception-spec-mismatch -Wno-overloaded-virtual -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -std=c++11 -Xclang -fuse-init-array
ifneq ($(filter gce_x86 gce calypso, $(TARGET_DEVICE)),)
COMMON_CFLAGS += -DDISPLAY_LOGO=0
......
......@@ -399,7 +399,8 @@ LOCAL_SRC_FILES += \
LOCAL_CFLAGS += -DLOG_TAG=\"libLLVM_swiftshader\" \
-Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual
-Wno-overloaded-virtual \
-Xclang -fuse-init-array
LOCAL_CFLAGS += -fomit-frame-pointer -Os -ffunction-sections -fdata-sections
LOCAL_CFLAGS += -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
......
......@@ -24,7 +24,8 @@ COMMON_CFLAGS := \
-msse2 \
-D__STDC_CONSTANT_MACROS \
-D__STDC_LIMIT_MACROS \
-std=c++11
-std=c++11 \
-Xclang -fuse-init-array
COMMON_SRC_FILES := \
preprocessor/Diagnostics.cpp \
......
......@@ -7,7 +7,8 @@ COMMON_CFLAGS := \
-DEGL_EGLEXT_PROTOTYPES \
-Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual
-Wno-overloaded-virtual \
-Xclang -fuse-init-array
COMMON_SRC_FILES := \
Config.cpp \
......
......@@ -13,7 +13,8 @@ COMMON_CFLAGS := \
-DGL_GLEXT_PROTOTYPES \
-Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual
-Wno-overloaded-virtual \
-Xclang -fuse-init-array
COMMON_SRC_FILES := \
......
......@@ -12,7 +12,8 @@ COMMON_CFLAGS := \
-DGL_GLEXT_PROTOTYPES \
-Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual
-Wno-overloaded-virtual \
-Xclang -fuse-init-array
COMMON_SRC_FILES := \
Buffer.cpp \
......
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