Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/llvm/librt Start adding build glue for ASAN par...



details:   https://anonhg.NetBSD.org/src/rev/8a51adcbcc06
branches:  trunk
changeset: 779775:8a51adcbcc06
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Jun 17 18:48:46 2012 +0000

description:
Start adding build glue for ASAN parts of compiler-rt.
Still missing the platform specific parts.

diffstat:

 external/bsd/llvm/librt/Makefile                    |   5 ++-
 external/bsd/llvm/librt/libclang_asan/Makefile      |  28 +++++++++++++++++++++
 external/bsd/llvm/librt/libclang_asan/shlib_version |   3 ++
 3 files changed, 34 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 8347eaeb5fd7 -r 8a51adcbcc06 external/bsd/llvm/librt/Makefile
--- a/external/bsd/llvm/librt/Makefile  Sun Jun 17 16:51:31 2012 +0000
+++ b/external/bsd/llvm/librt/Makefile  Sun Jun 17 18:48:46 2012 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1 2012/06/17 16:51:31 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2012/06/17 18:48:46 joerg Exp $
 
 .include <bsd.own.mk>
 
-SUBDIR=        \
+SUBDIR+= \
+       libclang_asan \
        libcompiler_rt
 
 .include <bsd.subdir.mk>
diff -r 8347eaeb5fd7 -r 8a51adcbcc06 external/bsd/llvm/librt/libclang_asan/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/librt/libclang_asan/Makefile    Sun Jun 17 18:48:46 2012 +0000
@@ -0,0 +1,28 @@
+#      $NetBSD: Makefile,v 1.1 2012/06/17 18:48:47 joerg Exp $
+
+LIB=           clang_asan
+USE_SHLIBDIR=  yes
+WARNS=         4
+CWARNFLAGS+=   -Wno-missing-noreturn
+
+.include <bsd.init.mk>
+
+LDFLAGS+=      -nodefaultlibs
+
+.PATH: ${COMPILER_RT_SRCDIR}/lib/asan
+
+SRCS+=         asan_allocator.cc asan_globals.cc \
+               asan_poisoning.cc asan_posix.cc asan_printf.cc \
+               asan_rtl.cc asan_stack.cc asan_stats.cc \
+               asan_thread.cc asan_thread_registry.cc
+
+.PATH: ${COMPILER_RT_SRCDIR}/lib/sanitizer_common
+
+SRCS+=         sanitizer_allocator.cc sanitizer_common.cc \
+               sanitizer_libc.cc \
+               sanitizer_posix.cc sanitizer_printf.cc sanitizer_symbolizer.cc
+
+CPPFLAGS+=-I${COMPILER_RT_SRCDIR}/lib
+CPPFLAGS+=-I${COMPILER_RT_SRCDIR}/lib/sanitizer_common
+
+.include <bsd.lib.mk>
diff -r 8347eaeb5fd7 -r 8a51adcbcc06 external/bsd/llvm/librt/libclang_asan/shlib_version
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/librt/libclang_asan/shlib_version       Sun Jun 17 18:48:46 2012 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: shlib_version,v 1.1 2012/06/17 18:48:47 joerg Exp $
+major=1
+minor=0



Home | Main Index | Thread Index | Old Index