[compiler-rt] r173930 - [Sanitizer] include sanitizer_common headers when building interception library
Alexey Samsonov
samsonov at google.com
Wed Jan 30 06:27:41 PST 2013
Author: samsonov
Date: Wed Jan 30 08:27:41 2013
New Revision: 173930
URL: http://llvm.org/viewvc/llvm-project?rev=173930&view=rev
Log:
[Sanitizer] include sanitizer_common headers when building interception library
Modified:
compiler-rt/trunk/lib/interception/CMakeLists.txt
compiler-rt/trunk/lib/interception/Makefile.mk
compiler-rt/trunk/lib/interception/interception.h
compiler-rt/trunk/lib/tsan/rtl/Makefile.mk
Modified: compiler-rt/trunk/lib/interception/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=173930&r1=173929&r2=173930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/interception/CMakeLists.txt Wed Jan 30 08:27:41 2013
@@ -10,6 +10,8 @@ set(MACH_OVERRIDE_SOURCES
mach_override/mach_override.c
)
+include_directories(..)
+
# Only add this C file if we're building on a Mac. Other source files can be
# harmlessly compiled on any platform, but the C file is complained about due
# to pedantic rules about empty translation units.
Modified: compiler-rt/trunk/lib/interception/Makefile.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/Makefile.mk?rev=173930&r1=173929&r2=173930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/Makefile.mk (original)
+++ compiler-rt/trunk/lib/interception/Makefile.mk Wed Jan 30 08:27:41 2013
@@ -18,6 +18,7 @@ Implementation := Generic
# FIXME: use automatic dependencies?
Dependencies := $(wildcard $(Dir)/*.h)
Dependencies += $(wildcard $(Dir)/mach_override/*.h)
+Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
# Define a convenience variable for all the interception functions.
InterceptionFunctions := $(Sources:%.cc=%)
Modified: compiler-rt/trunk/lib/interception/interception.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception.h?rev=173930&r1=173929&r2=173930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception.h (original)
+++ compiler-rt/trunk/lib/interception/interception.h Wed Jan 30 08:27:41 2013
@@ -19,7 +19,7 @@
# error "Interception doesn't work on this operating system."
#endif
-#include "../sanitizer_common/sanitizer_internal_defs.h"
+#include "sanitizer_common/sanitizer_internal_defs.h"
// These typedefs should be used only in the interceptor definitions to replace
// the standard system types (e.g. SSIZE_T instead of ssize_t)
Modified: compiler-rt/trunk/lib/tsan/rtl/Makefile.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/Makefile.mk?rev=173930&r1=173929&r2=173930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/Makefile.mk (original)
+++ compiler-rt/trunk/lib/tsan/rtl/Makefile.mk Wed Jan 30 08:27:41 2013
@@ -20,6 +20,7 @@ Implementation := Generic
Dependencies := $(wildcard $(Dir)/*.h)
Dependencies += $(wildcard $(Dir)/../../interception/*.h)
Dependencies += $(wildcard $(Dir)/../../interception/mach_override/*.h)
+Dependencies += $(wildcard $(Dir)/../../sanitizer_common/*.h)
# Define a convenience variable for all the tsan functions.
TsanFunctions += $(Sources:%.cc=%) $(AsmSources:%.S=%)
More information about the llvm-commits
mailing list