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.
This commit is contained in:
Raul Tambre
2021-02-13 10:56:37 +02:00
parent 356e83c156
commit 58d9525233

View File

@@ -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()