Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / libc / src / compiler / CMakeLists.txt
blobaa59d84e08d14677002caf94619dd5ba42cc23b4
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 else()
4   add_subdirectory(generic)
5 endif()
7 if(TARGET libc.src.compiler.${LIBC_TARGET_OS}.__stack_chk_fail)
8   set(stack_chk_fail_dep libc.src.compiler.${LIBC_TARGET_OS}.__stack_chk_fail)
9 else()
10   set(stack_chk_fail_dep libc.src.compiler.generic.__stack_chk_fail)
11 endif()
13 add_entrypoint_object(
14   __stack_chk_fail
15   ALIAS
16   DEPENDS
17     ${stack_chk_fail_dep}