diff options
Diffstat (limited to 'libc/cmake/modules/CheckCompilerFeatures.cmake')
-rw-r--r-- | libc/cmake/modules/CheckCompilerFeatures.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/cmake/modules/CheckCompilerFeatures.cmake b/libc/cmake/modules/CheckCompilerFeatures.cmake index 862c7ec..a5ea66a 100644 --- a/libc/cmake/modules/CheckCompilerFeatures.cmake +++ b/libc/cmake/modules/CheckCompilerFeatures.cmake @@ -13,6 +13,8 @@ set( "float16_conversion" "float128" "fixed_point" + "cfloat16" + "cfloat128" ) # Making sure ALL_COMPILER_FEATURES is sorted. @@ -110,6 +112,10 @@ foreach(feature IN LISTS ALL_COMPILER_FEATURES) set(LIBC_TYPES_HAS_FLOAT128 TRUE) elseif(${feature} STREQUAL "fixed_point") set(LIBC_COMPILER_HAS_FIXED_POINT TRUE) + elseif(${feature} STREQUAL "cfloat16") + set(LIBC_TYPES_HAS_CFLOAT16 TRUE) + elseif(${feature} STREQUAL "cfloat128") + set(LIBC_TYPES_HAS_CFLOAT128 TRUE) elseif(${feature} STREQUAL "builtin_ceil_floor_rint_trunc") set(LIBC_COMPILER_HAS_BUILTIN_CEIL_FLOOR_RINT_TRUNC TRUE) elseif(${feature} STREQUAL "builtin_fmax_fmin") |