OSDN Git Service

Fix build: After merging in Clang, -Wno-psabi is no longer supported.
authorShih-wei Liao <sliao@google.com>
Fri, 3 Aug 2012 12:17:23 +0000 (05:17 -0700)
committerShih-wei Liao <sliao@google.com>
Fri, 3 Aug 2012 12:17:23 +0000 (05:17 -0700)
-Wno-unused-but-set-variable is not supported either.

Change-Id: Ic416048a0b078efa50515539f6cac9db472ad086

core/llvm_config.mk

index 33cf6d1..6d08e78 100644 (file)
@@ -67,6 +67,11 @@ TARGET_thumb_CLANG_CFLAGS += $(filter-out $(CLANG_CONFIG_UNKNOWN_CFLAGS),$(TARGE
 $(call clang-flags-subst,-march=armv5te,-march=armv5t)
 $(call clang-flags-subst,-march=armv5e,-march=armv5)
 
+# clang does not support -Wno-psabi and -Wno-unused-but-set-variable
+$(call clang-flags-subst,-Wno-psabi,)
+$(call clang-flags-subst,-Wno-unused-but-set-variable,)
+
+
 ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS := -faddress-sanitizer
 ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS := -Wl,-u,__asan_preinit
 ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES := libdl libasan_preload