OSDN Git Service

Revert "Switch from clang 3.6 to new clang repository (with 3.8)."
authorStephen Hines <srhines@google.com>
Wed, 21 Oct 2015 15:32:45 +0000 (08:32 -0700)
committerStephen Hines <srhines@google.com>
Wed, 21 Oct 2015 16:09:38 +0000 (09:09 -0700)
This reverts commit 1332828b6ea25250c497609a1d4b2c7e28227ff9.

Bug: 25141123

Change-Id: Idd5d8757095b2b370046a84aea76bc95e16f3876

core/clang/config.mk
core/config_sanitizers.mk

index 03e8dd5..0c5e963 100644 (file)
@@ -1,6 +1,7 @@
 ## Clang configurations.
 
-LLVM_PREBUILTS_VERSION := 3.8
+LLVM_PREBUILTS_VERSION := 3.6
+FORCE_BUILD_SANITIZER_SHARED_OBJECTS := true
 LLVM_PREBUILTS_PATH := prebuilts/clang/host/$(BUILD_OS)-x86/$(LLVM_PREBUILTS_VERSION)/bin
 LLVM_RTLIB_PATH := $(LLVM_PREBUILTS_PATH)/../lib/clang/$(LLVM_PREBUILTS_VERSION)/lib/linux/
 
index df52e72..7189338 100644 (file)
@@ -84,7 +84,7 @@ ifneq ($(filter coverage,$(my_sanitize)),)
 endif
 
 ifneq ($(my_sanitize),)
-  fsanitize_arg := $(subst $(space),$(comma),$(my_sanitize))
+  fsanitize_arg := $(subst $(space),$(comma),$(my_sanitize)),
   my_cflags += -fsanitize=$(fsanitize_arg)
 
   ifdef LOCAL_IS_HOST_MODULE
@@ -92,10 +92,8 @@ ifneq ($(my_sanitize),)
     my_ldflags += -fsanitize=$(fsanitize_arg)
     my_ldlibs += -lrt -ldl
   else
-    ifeq ($(filter address,$(my_sanitize)),)
-      my_cflags += -fsanitize-trap=all
-      my_cflags += -ftrap-function=abort
-    endif
+    my_cflags += -fsanitize-undefined-trap-on-error
+    my_cflags += -ftrap-function=abort
     my_shared_libraries += libdl
   endif
 endif