[PATCH] D21119: [profile] Fix a profile runtime build bug for darwin

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 09:28:15 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272162: [profile] Pass extra build flags (feature enabling macros) to Darwin build (authored by davidxl).

Changed prior to commit:
  http://reviews.llvm.org/D21119?vs=59998&id=60050#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21119

Files:
  compiler-rt/trunk/lib/profile/CMakeLists.txt
  compiler-rt/trunk/lib/profile/InstrProfilingUtil.c

Index: compiler-rt/trunk/lib/profile/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt
@@ -82,6 +82,7 @@
     STATIC
     OS ${PROFILE_SUPPORTED_OS}
     ARCHS ${PROFILE_SUPPORTED_ARCH}
+    CFLAGS ${EXTRA_FLAGS}
     SOURCES ${PROFILE_SOURCES}
     PARENT_TARGET profile)
 else()
Index: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
===================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
+++ compiler-rt/trunk/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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21119.60050.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160608/50335f23/attachment.bin>


More information about the llvm-commits mailing list