[libc++][Android] Allow testing libc++ with clang-r536225 (#116149)
[llvm-project.git] / libc / src / complex / CMakeLists.txt
blob289cce5455af789f1ef62dd5424ff9ac2c5026e0
1 add_subdirectory(generic)
3 function(add_complex_entrypoint_object name)
4   get_fq_target_name("generic.${name}" fq_generic_target_name)
5   if(TARGET ${fq_generic_target_name})
6     add_entrypoint_object(
7       ${name}
8       ALIAS
9       DEPENDS
10         .generic.${name}
11     )
12     return()
13   endif()
14 endfunction()
16 add_complex_entrypoint_object(creal)
17 add_complex_entrypoint_object(crealf)
18 add_complex_entrypoint_object(creall)
19 add_complex_entrypoint_object(crealf16)
20 add_complex_entrypoint_object(crealf128)
22 add_complex_entrypoint_object(cimag)
23 add_complex_entrypoint_object(cimagf)
24 add_complex_entrypoint_object(cimagl)
25 add_complex_entrypoint_object(cimagf16)
26 add_complex_entrypoint_object(cimagf128)