Skip to content

[flang] Fixed build issues after f20ea05. #84377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion flang/runtime/complex-reduction.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ static long_double_Complex_t CMPLXL(long double r, long double i) {
* supports __builtin_complex. For Clang, require >=12.0.
* Otherwise, rely on the memory layout compatibility.
*/
#if (defined(__clang_major__) && (__clang_major__ >= 12)) || defined(__GNUC__)
#if (defined(__clang_major__) && (__clang_major__ >= 12)) || \
(defined(__GNUC__) && !defined(__clang__))
#define CMPLXF128 __builtin_complex
#else
static CFloat128ComplexType CMPLXF128(CFloat128Type r, CFloat128Type i) {
Expand Down