forked from OSchip/llvm-project
[CMake] [darwin] [cc_kext] In addition to builtin sources the cc_kext builtins include some functions from clang_rt.profile.
llvm-svn: 248548
This commit is contained in:
parent
13a62c6595
commit
7146f7bcf9
|
@ -230,19 +230,22 @@ macro(darwin_add_builtin_libraries)
|
|||
set(CMAKE_C_FLAGS "-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
|
||||
set(CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS})
|
||||
|
||||
set(PROFILE_SOURCES ../profile/InstrProfiling
|
||||
../profile/InstrProfilingBuffer
|
||||
../profile/InstrProfilingPlatformDarwin)
|
||||
foreach (os ${ARGN})
|
||||
list_union(DARWIN_BUILTIN_ARCHS DARWIN_${os}_ARCHS BUILTIN_SUPPORTED_ARCH)
|
||||
foreach (arch ${DARWIN_BUILTIN_ARCHS})
|
||||
# do cc_kext
|
||||
# In addition to the builtins cc_kext includes some profile sources
|
||||
darwin_add_builtin_library(clang_rt cc_kext
|
||||
OS ${os}
|
||||
ARCH ${arch}
|
||||
SOURCES ${${arch}_SOURCES}
|
||||
SOURCES ${${arch}_SOURCES} ${PROFILE_SOURCES}
|
||||
CFLAGS -arch ${arch} -mkernel
|
||||
DEFS KERNEL_USE
|
||||
PARENT_TARGET builtins)
|
||||
|
||||
|
||||
darwin_find_excluded_builtins_list(${arch}_${os}_EXCLUDED_BUILTINS
|
||||
OS ${os}
|
||||
ARCH ${arch}
|
||||
|
|
Loading…
Reference in New Issue