[compiler-rt] r272162 - [profile] Pass extra build flags (feature enabling macros) to Darwin build

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 09:21:35 PDT 2016


Author: davidxl
Date: Wed Jun  8 11:21:35 2016
New Revision: 272162

URL: http://llvm.org/viewvc/llvm-project?rev=272162&view=rev
Log:
[profile] Pass extra build flags (feature enabling macros) to Darwin build

Differential Revision: http://reviews.llvm.org/D21119

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

Modified: compiler-rt/trunk/lib/profile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/CMakeLists.txt?rev=272162&r1=272161&r2=272162&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Wed Jun  8 11:21:35 2016
@@ -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()

Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.c?rev=272162&r1=272161&r2=272162&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c Wed Jun  8 11:21:35 2016
@@ -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




More information about the llvm-commits mailing list