summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Android.mk
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-07-13 14:37:16 -0700
committerJesse Hall <jessehall@google.com>2014-07-14 12:18:00 -0700
commit24cd98eef88ac93f80c327f8d74f0a1ae0aceee4 (patch)
tree3212add7072f7391b2e76f15751e960ebec902a1 /services/surfaceflinger/Android.mk
parent652c485467598240ecbb3a60516ad1140eddfab1 (diff)
downloadframeworks_native-24cd98eef88ac93f80c327f8d74f0a1ae0aceee4.zip
frameworks_native-24cd98eef88ac93f80c327f8d74f0a1ae0aceee4.tar.gz
frameworks_native-24cd98eef88ac93f80c327f8d74f0a1ae0aceee4.tar.bz2
Compile libsurfaceflinger with Clang and -std=c++11 [DO NOT MERGE]
This is necessary to use C11/C++11 stdlib atomics, which the next change will do. This change also fixes a couple bits of syntax that both GCC and Clang refuse to compile in -std=c++11 mode. Change-Id: Ia14d9d6b537a3bb106c23e19a277e48be180754c
Diffstat (limited to 'services/surfaceflinger/Android.mk')
-rw-r--r--services/surfaceflinger/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/Android.mk b/services/surfaceflinger/Android.mk
index 0e15506..888d2f8 100644
--- a/services/surfaceflinger/Android.mk
+++ b/services/surfaceflinger/Android.mk
@@ -1,6 +1,8 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
+LOCAL_CLANG := true
+
LOCAL_SRC_FILES:= \
Client.cpp \
DisplayDevice.cpp \
@@ -81,6 +83,7 @@ else
endif
LOCAL_CFLAGS += -fvisibility=hidden
+LOCAL_CFLAGS += -std=c++11
LOCAL_SHARED_LIBRARIES := \
libcutils \