Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git] / clang / tools / scan-build-py / tests / functional / exec / CMakeLists.txt
blobcb6ebda183725203e71a53bda9ef119ea2ed43a1
1 project(exec C)
3 cmake_minimum_required(VERSION 3.20.0)
5 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
7 include(CheckFunctionExists)
8 include(CheckSymbolExists)
10 add_definitions(-D_GNU_SOURCE)
11 list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
13 check_function_exists(execve HAVE_EXECVE)
14 check_function_exists(execv HAVE_EXECV)
15 check_function_exists(execvpe HAVE_EXECVPE)
16 check_function_exists(execvp HAVE_EXECVP)
17 check_function_exists(execvP HAVE_EXECVP2)
18 check_function_exists(exect HAVE_EXECT)
19 check_function_exists(execl HAVE_EXECL)
20 check_function_exists(execlp HAVE_EXECLP)
21 check_function_exists(execle HAVE_EXECLE)
22 check_function_exists(posix_spawn HAVE_POSIX_SPAWN)
23 check_function_exists(posix_spawnp HAVE_POSIX_SPAWNP)
25 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
26 include_directories(${CMAKE_CURRENT_BINARY_DIR})
28 add_executable(exec main.c)