Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 5908c95

Browse files
[libsanitizer] Follow-up for r200700: add the new header to CMakeLists.txt and make it empty on non-Mac.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200701 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a3a0560 commit 5908c95

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/sanitizer_common/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ set(SANITIZER_HEADERS
5656
sanitizer_libignore.h
5757
sanitizer_linux.h
5858
sanitizer_list.h
59+
sanitizer_mac.h
5960
sanitizer_mutex.h
6061
sanitizer_placement_new.h
6162
sanitizer_platform.h

lib/sanitizer_common/sanitizer_mac.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#ifndef SANITIZER_MAC_H
1414
#define SANITIZER_MAC_H
1515

16+
#include "sanitizer_platform.h"
17+
#if SANITIZER_MAC
18+
1619
namespace __sanitizer {
1720

1821
enum MacosVersion {
@@ -29,4 +32,5 @@ MacosVersion GetMacosVersion();
2932

3033
} // namespace __sanitizer
3134

35+
#endif // SANITIZER_MAC
3236
#endif // SANITIZER_MAC_H

0 commit comments

Comments
 (0)