Mercurial > hg > CbC > CbC_llvm
view libc/examples/examples.cmake @ 259:011663b4a808
remove duplicate setjmp in return continuation
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Oct 2023 15:52:37 +0900 |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
function(add_example name) add_executable( ${name} ${ARGN} ) if(LIBC_FULLBUILD) target_link_options(${name} PRIVATE -static -rtlib=compiler-rt -fuse-ld=lld) elseif(LIBC_OVERLAY_ARCHIVE_DIR) target_link_directories(${name} PRIVATE ${LIBC_OVERLAY_ARCHIVE_DIR}) target_link_options(${name} PRIVATE -l:libllvmlibc.a) else() message(FATAL_ERROR "Either LIBC_FULLBUILD should be on or " "LIBC_OVERLAY_ARCHIVE_DIR should be set.") endif() endfunction()