From f88d3b9afbb39217d3a8649c5b2549707dd4a559 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Wed, 8 Jun 2016 16:21:35 +0000 Subject: [PATCH] [profile] Pass extra build flags (feature enabling macros) to Darwin build Differential Revision: http://reviews.llvm.org/D21119 llvm-svn: 272162 --- compiler-rt/lib/profile/CMakeLists.txt | 1 + compiler-rt/lib/profile/InstrProfilingUtil.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler-rt/lib/profile/CMakeLists.txt b/compiler-rt/lib/profile/CMakeLists.txt index 5bcdca1297ab..996f3beaff45 100644 --- a/compiler-rt/lib/profile/CMakeLists.txt +++ b/compiler-rt/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/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c index f97004d41ec8..e87ab7640446 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.c +++ b/compiler-rt/lib/profile/InstrProfilingUtil.c @@ -16,9 +16,7 @@ #else #include #include -#if defined(__linux__) #include -#endif #include #include #endif