1 function(add_example name)
7 if(LLVM_LIBC_FULL_BUILD)
8 target_link_options(${name} PRIVATE -static -rtlib=compiler-rt -fuse-ld=lld)
9 elseif(LIBC_OVERLAY_ARCHIVE_DIR)
10 target_link_directories(${name} PRIVATE ${LIBC_OVERLAY_ARCHIVE_DIR})
11 target_link_options(${name} PRIVATE -l:libllvmlibc.a)
13 message(FATAL_ERROR "Either LLVM_LIBC_FULL_BUILD should be on or "
14 "LIBC_OVERLAY_ARCHIVE_DIR should be set.")