From 9efd95b0297e8bd6d77bca2d08c450d426c76ba2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 30 Mar 2015 14:37:11 -0700 Subject: Build init with clang. Change-Id: I14d95b3fe0505dd7d7632e2eedc537f97553c715 --- init/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init/Android.mk') diff --git a/init/Android.mk b/init/Android.mk index cb4cb11..94d3dad 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -18,6 +18,8 @@ init_cflags += \ -Wno-unused-parameter \ -Werror \ +init_clang := true + # -- include $(CLEAR_VARS) @@ -30,6 +32,7 @@ LOCAL_SRC_FILES:= \ LOCAL_STATIC_LIBRARIES := libbase LOCAL_MODULE := libinit +LOCAL_CLANG := $(init_clang) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) @@ -69,6 +72,7 @@ LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \ ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \ ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd +LOCAL_CLANG := $(init_clang) include $(BUILD_EXECUTABLE) @@ -85,4 +89,5 @@ LOCAL_SHARED_LIBRARIES += \ libbase \ LOCAL_STATIC_LIBRARIES := libinit +LOCAL_CLANG := $(init_clang) include $(BUILD_NATIVE_TEST) -- cgit v1.1