summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/AppleClang-C-FeatureTests.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Features: Fix C90 feature detection.Stephen Kelly2015-02-041-1/+1
| | | | | | | | | | | | | | | This bug caused c_function_prototypes to not be recorded at configure time when compiling with -std=gnu99 or similar. In the case of feature recording, that was not a problem, because the logic in CMakeDetermineCompileFeatures.cmake currently assumes that a feature present for an earlier standard is present for a later standard. However, the detection strings are also used in WriteCompilerDetectionHeader, so the feature macro has been defined to '0' when using a later language dialect. Fix that by not checking the existence of the __STDC_VERSION__ macro at all when detecting C90 features.
* Features: Record for historical Xcode clang versions.Stephen Kelly2015-01-111-1/+1
|
* Features: Record for AppleClang 5.1Stephen Kelly2014-12-221-0/+11
Apple's Clang 5.1 already supports most of the C and C++ features CMake enumerates.