diff options
author | Raul Tambre <raul@tambre.ee> | 2021-02-13 08:56:37 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-02-25 16:22:10 (GMT) |
commit | 58d9525233e4ffca1c7edc7a5978770a0e4ec36d (patch) | |
tree | 5da0b09e4b7764284f599ef122b1255ff9ceb56c /Modules/Compiler/Clang-C.cmake | |
parent | 356e83c156a37d5882685da11aa8d5be057cad33 (diff) | |
download | CMake-58d9525233e4ffca1c7edc7a5978770a0e4ec36d.zip CMake-58d9525233e4ffca1c7edc7a5978770a0e4ec36d.tar.gz CMake-58d9525233e4ffca1c7edc7a5978770a0e4ec36d.tar.bz2 |
Clang: Correct default C standards for ancient versions
C11 was made default in LLVM commit ab506adf7d3ced6abcaf42f92de3d6cd15fa19e8,
released in 3.5.2.
C99 was made default in LLVM commit 17f76e04d244c80e70f1c81c94d4524b53d9772d,
released in 2.1. It was flipped a few times between C89 and C99 during the 2.1
cycle, but the C89 default never made it into a release.
Diffstat (limited to 'Modules/Compiler/Clang-C.cmake')
-rw-r--r-- | Modules/Compiler/Clang-C.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-C.cmake b/Modules/Compiler/Clang-C.cmake index 220e009..dc472d4 100644 --- a/Modules/Compiler/Clang-C.cmake +++ b/Modules/Compiler/Clang-C.cmake @@ -60,7 +60,7 @@ if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 3.0) endif() if(NOT "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC") - __compiler_check_default_language_standard(C 3.4 99 3.6 11) + __compiler_check_default_language_standard(C 2.1 99 3.5.2 11) else() set(CMAKE_C_STANDARD_DEFAULT "") endif() |