[profile] Pass extra build flags (feature enabling macros) to Darwin build

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

llvm-svn: 272162
This commit is contained in:
Xinliang David Li 2016-06-08 16:21:35 +00:00
parent 7a03de5210
commit f88d3b9afb
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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