diff options
author | Xinliang David Li <davidxl@google.com> | 2016-06-08 16:21:35 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-06-08 16:21:35 +0000 |
commit | 66a99f10ae0f54ae7c5233fe2b8eb393242dd90f (patch) | |
tree | 1e2de0411492697ce90c43eabaf8ba29e0905379 | |
parent | ce56f0620eef877720f160ce037fc377c34dd7c2 (diff) |
[profile] Pass extra build flags (feature enabling macros) to Darwin build
Differential Revision: http://reviews.llvm.org/D21119
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272162 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/profile/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/profile/InstrProfilingUtil.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/profile/CMakeLists.txt b/lib/profile/CMakeLists.txt index 5bcdca129..996f3beaf 100644 --- a/lib/profile/CMakeLists.txt +++ b/lib/profile/CMakeLists.txt @@ -82,6 +82,7 @@ if(APPLE) STATIC OS ${PROFILE_SUPPORTED_OS} ARCHS ${PROFILE_SUPPORTED_ARCH} + CFLAGS ${EXTRA_FLAGS} SOURCES ${PROFILE_SOURCES} PARENT_TARGET profile) else() diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index f97004d41..e87ab7640 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -16,9 +16,7 @@ #else #include <sys/stat.h> #include <sys/types.h> -#if defined(__linux__) #include <unistd.h> -#endif #include <fcntl.h> #include <errno.h> #endif |