[compiler-rt] r200701 - [libsanitizer] Follow-up for r200700: add the new header to CMakeLists.txt and make it empty on non-Mac.
Alexander Potapenko
glider at google.com
Mon Feb 3 07:45:03 PST 2014
Author: glider
Date: Mon Feb 3 09:45:03 2014
New Revision: 200701
URL: http://llvm.org/viewvc/llvm-project?rev=200701&view=rev
Log:
[libsanitizer] Follow-up for r200700: add the new header to CMakeLists.txt and make it empty on non-Mac.
Modified:
compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.h
Modified: compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt?rev=200701&r1=200700&r2=200701&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt Mon Feb 3 09:45:03 2014
@@ -56,6 +56,7 @@ set(SANITIZER_HEADERS
sanitizer_libignore.h
sanitizer_linux.h
sanitizer_list.h
+ sanitizer_mac.h
sanitizer_mutex.h
sanitizer_placement_new.h
sanitizer_platform.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.h?rev=200701&r1=200700&r2=200701&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.h Mon Feb 3 09:45:03 2014
@@ -13,6 +13,9 @@
#ifndef SANITIZER_MAC_H
#define SANITIZER_MAC_H
+#include "sanitizer_platform.h"
+#if SANITIZER_MAC
+
namespace __sanitizer {
enum MacosVersion {
@@ -29,4 +32,5 @@ MacosVersion GetMacosVersion();
} // namespace __sanitizer
+#endif // SANITIZER_MAC
#endif // SANITIZER_MAC_H
More information about the llvm-commits
mailing list