diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-21 13:55:54 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-21 13:55:54 +0000 |
commit | 372b267fadcaf73b9d9cee5c8050d3c10e94f74d (patch) | |
tree | 9d7e964b03c86b618fe346ab61f4d7f6ebf4f265 /make | |
parent | a84805f1ccb2b7d4b6c0ba384bd3541fa4eaf808 (diff) | |
download | compiler-rt-372b267fadcaf73b9d9cee5c8050d3c10e94f74d.tar.gz compiler-rt-372b267fadcaf73b9d9cee5c8050d3c10e94f74d.tar.bz2 compiler-rt-372b267fadcaf73b9d9cee5c8050d3c10e94f74d.tar.xz |
[sanitizer] Add MSan to Makefile-based build rules.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/platform/clang_linux.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/make/platform/clang_linux.mk b/make/platform/clang_linux.mk index ce763ad9..89f7268b 100644 --- a/make/platform/clang_linux.mk +++ b/make/platform/clang_linux.mk @@ -60,11 +60,13 @@ endif # Build runtime libraries for x86_64. ifeq ($(call contains,$(SupportedArches),x86_64),true) -Configs += full-x86_64 profile-x86_64 asan-x86_64 tsan-x86_64 ubsan-x86_64 +Configs += full-x86_64 profile-x86_64 asan-x86_64 tsan-x86_64 msan-x86_64 \ + ubsan-x86_64 Arch.full-x86_64 := x86_64 Arch.profile-x86_64 := x86_64 Arch.asan-x86_64 := x86_64 Arch.tsan-x86_64 := x86_64 +Arch.msan-x86_64 := x86_64 Arch.ubsan-x86_64 := x86_64 endif @@ -89,6 +91,7 @@ CFLAGS.asan-i386 := $(CFLAGS) -m32 -fPIE -fno-builtin \ CFLAGS.asan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin \ -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 CFLAGS.tsan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin +CFLAGS.msan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin CFLAGS.ubsan-i386 := $(CFLAGS) -m32 -fPIE -fno-builtin CFLAGS.ubsan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin @@ -121,6 +124,8 @@ FUNCTIONS.asan-arm-android := $(AsanFunctions) $(InterceptionFunctions) \ $(SanitizerCommonFunctions) FUNCTIONS.tsan-x86_64 := $(TsanFunctions) $(InterceptionFunctions) \ $(SanitizerCommonFunctions) +FUNCTIONS.msan-x86_64 := $(MsanFunctions) $(InterceptionFunctions) \ + $(SanitizerCommonFunctions) FUNCTIONS.ubsan-i386 := $(UbsanFunctions) $(SanitizerCommonFunctions) FUNCTIONS.ubsan-x86_64 := $(UbsanFunctions) $(SanitizerCommonFunctions) |