Skip to content

Commit

Permalink
[flang-rt] Set HAVE_LDBL_MANT_DIG_113. (llvm#130836)
Browse files Browse the repository at this point in the history
This check enables flang_rt.quadmath build on aarch64.
  • Loading branch information
vzakhari authored Mar 11, 2025
1 parent 0e4ba47 commit 6dbb531
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flang-rt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ check_cxx_source_compiles(
"
HAVE_DECL_STRERROR_S)


# Search for clang_rt.builtins library. Need in addition to msvcrt.
if (WIN32)
find_compiler_rt_library(builtins FLANG_RT_BUILTINS_LIBRARY)
Expand Down Expand Up @@ -294,6 +293,15 @@ elseif (FLANG_RT_GCC_RESOURCE_DIR)
endif ()
endif ()

# Check if 128-bit float computations can be done via long double.
check_cxx_source_compiles(
"#include <cfloat>
#if LDBL_MANT_DIG != 113
#error LDBL_MANT_DIG != 113
#endif
int main() { return 0; }
"
HAVE_LDBL_MANT_DIG_113)


#####################
Expand Down

0 comments on commit 6dbb531

Please sign in to comment.