aboutsummaryrefslogtreecommitdiff
path: root/clang/tools
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2024-05-23 17:05:41 +0400
committerGitHub <noreply@github.com>2024-05-23 17:05:41 +0400
commit4feae05c6abda364a9295aecfa600d7d4e7dfeb6 (patch)
treeba23102c55adb6af27d1b2d60bf05b58055a6a84 /clang/tools
parent32c3561d44aa792ef08d72b5a4c342c9965bc4c2 (diff)
downloadllvm-4feae05c6abda364a9295aecfa600d7d4e7dfeb6.zip
llvm-4feae05c6abda364a9295aecfa600d7d4e7dfeb6.tar.gz
llvm-4feae05c6abda364a9295aecfa600d7d4e7dfeb6.tar.bz2
Remove some `try_compile` CMake checks for compiler flags (#92953)
This patch remove 36 checks for compiler flags that are done via invoking the compiler across LLVM, Clang, and LLDB. It's was made possible by raising the bar for supported compilers that has been happening over the years since the checks were added. This is going to improve CMake configuration times. This topic was highlighted in https://discourse.llvm.org/t/cmake-compiler-flag-checks-are-really-slow-ideas-to-speed-them-up/78882.
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt b/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
index 95c6fdb..cb6ebda 100644
--- a/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
+++ b/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
@@ -2,11 +2,7 @@ project(exec C)
cmake_minimum_required(VERSION 3.20.0)
-include(CheckCCompilerFlag)
-check_c_compiler_flag("-std=c99" C99_SUPPORTED)
-if (C99_SUPPORTED)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
-endif()
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
include(CheckFunctionExists)
include(CheckSymbolExists)