Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 16:28:40 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291455 - in head: etc/mtree lib/libclang_rt lib/libclang_rt/include tools/build/mk
Message-ID:  <201511291628.tATGSeKm046474@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun Nov 29 16:28:40 2015
New Revision: 291455
URL: https://svnweb.freebsd.org/changeset/base/291455

Log:
  Install the public sanitizer headers.  These are useful for programs
  that want to directly interface with sanitizer internals.

Added:
  head/lib/libclang_rt/include/
  head/lib/libclang_rt/include/Makefile   (contents, props changed)
Modified:
  head/etc/mtree/BSD.usr.dist
  head/lib/libclang_rt/Makefile
  head/lib/libclang_rt/Makefile.inc
  head/tools/build/mk/OptionalObsoleteFiles.inc

Modified: head/etc/mtree/BSD.usr.dist
==============================================================================
--- head/etc/mtree/BSD.usr.dist	Sun Nov 29 14:44:40 2015	(r291454)
+++ head/etc/mtree/BSD.usr.dist	Sun Nov 29 16:28:40 2015	(r291455)
@@ -21,6 +21,8 @@
         clang
             3.7.0
                 include
+			sanitizer
+			..
                 ..
                 lib
                     freebsd

Modified: head/lib/libclang_rt/Makefile
==============================================================================
--- head/lib/libclang_rt/Makefile	Sun Nov 29 14:44:40 2015	(r291454)
+++ head/lib/libclang_rt/Makefile	Sun Nov 29 16:28:40 2015	(r291455)
@@ -3,7 +3,8 @@
 .include <src.opts.mk>
 
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-SUBDIR+= asan\
+SUBDIR+= include\
+	 asan\
 	 asan-preinit\
 	 asan_cxx\
 	 safestack\

Modified: head/lib/libclang_rt/Makefile.inc
==============================================================================
--- head/lib/libclang_rt/Makefile.inc	Sun Nov 29 14:44:40 2015	(r291454)
+++ head/lib/libclang_rt/Makefile.inc	Sun Nov 29 16:28:40 2015	(r291455)
@@ -5,7 +5,8 @@
 CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/}
 CRTSRC=${.CURDIR}/../../../contrib/compiler-rt
 
-LIBDIR=/usr/lib/clang/3.7.0/lib/freebsd
+CLANGDIR=/usr/lib/clang/3.7.0
+LIBDIR=${CLANGDIR}/lib/freebsd
 
 NO_PIC=
 MK_PROFILE=no

Added: head/lib/libclang_rt/include/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libclang_rt/include/Makefile	Sun Nov 29 16:28:40 2015	(r291455)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <bsd.init.mk>
+
+.PATH: ${CRTSRC}/include/sanitizer
+
+INCSDIR=${CLANGDIR}/include/sanitizer
+
+INCS=	allocator_interface.h\
+	asan_interface.h\
+	common_interface_defs.h\
+	coverage_interface.h\
+	dfsan_interface.h\
+	linux_syscall_hooks.h\
+	lsan_interface.h\
+	msan_interface.h\
+	tsan_interface_atomic.h
+
+.include <bsd.prog.mk>

Modified: head/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- head/tools/build/mk/OptionalObsoleteFiles.inc	Sun Nov 29 14:44:40 2015	(r291454)
+++ head/tools/build/mk/OptionalObsoleteFiles.inc	Sun Nov 29 16:28:40 2015	(r291455)
@@ -1048,6 +1048,16 @@ OLD_FILES+=usr/bin/clang++
 OLD_FILES+=usr/bin/clang-cpp
 OLD_FILES+=usr/bin/clang-tblgen
 OLD_FILES+=usr/bin/tblgen
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/allocator_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/asan_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/common_interface_defs.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/coverage_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/dfsan_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/linux_syscall_hooks.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/lsan_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/msan_interface.h
+OLD_FILES+=usr/lib/clang/3.7.0/include/sanitizer/tsan_interface_atomic.h
+OLD_DIRS+=usr/lib/clang/3.7.0/include/sanitizer
 OLD_FILES+=usr/lib/clang/3.7.0/include/__stddef_max_align_t.h
 OLD_FILES+=usr/lib/clang/3.7.0/include/__wmmintrin_aes.h
 OLD_FILES+=usr/lib/clang/3.7.0/include/__wmmintrin_pclmul.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511291628.tATGSeKm046474>