UBSan: fix support on Darwin in 'make' build system. Patch by Jean-Daniel Dupas.
authorAlexey Samsonov <samsonov@google.com>
Fri, 16 Nov 2012 12:51:23 +0000 (12:51 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 16 Nov 2012 12:51:23 +0000 (12:51 +0000)
llvm-svn: 168167

compiler-rt/make/platform/clang_darwin.mk

index 399edee..fe84a05 100644 (file)
@@ -134,7 +134,7 @@ CFLAGS.asan_osx_dynamic := \
        $(CFLAGS) -mmacosx-version-min=10.5 -fno-builtin \
        -DMAC_INTERPOSE_FUNCTIONS=1
 
-CFLAGS.ubsan_osx       := $(CFLAGS) $(OSX_DEPLOYMENT_ARGS)
+CFLAGS.ubsan_osx       := $(CFLAGS) -mmacosx-version-min=10.5 -fno-builtin
 
 CFLAGS.ios.i386                := $(CFLAGS) $(IOSSIM_DEPLOYMENT_ARGS)
 CFLAGS.ios.x86_64      := $(CFLAGS) $(IOSSIM_DEPLOYMENT_ARGS)
@@ -188,7 +188,7 @@ FUNCTIONS.asan_osx_dynamic := $(AsanFunctions) $(InterceptionFunctions) \
                               $(SanitizerCommonFunctions) \
                              $(AsanDynamicFunctions)
 
-FUNCTIONS.ubsan_osx := $(UbsanFunctions)
+FUNCTIONS.ubsan_osx := $(UbsanFunctions) $(SanitizerCommonFunctions)
 
 CCKEXT_COMMON_FUNCTIONS := \
        absvdi2 \