Skip to content

Commit f1c4df5

Browse files
committed
builtins: Speculative MSVC fix.
Attempt to fix these build failures: https://lab.llvm.org/buildbot/#/builders/107/builds/12601 The suspected cause is that #133530 caused us to start passing -std:c11 to MSVC, which activated this code path that uses _Complex, which MSVC does not support. See: https://learn.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support Fix it by also checking _MSC_VER.
1 parent 1ae99f5 commit f1c4df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/builtins/int_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ typedef union {
223223
#define CRT_HAS_TF_MODE
224224
#endif
225225

226-
#if __STDC_VERSION__ >= 199901L
226+
#if __STDC_VERSION__ >= 199901L && !defined(_MSC_VER)
227227
typedef float _Complex Fcomplex;
228228
typedef double _Complex Dcomplex;
229229
typedef long double _Complex Lcomplex;

0 commit comments

Comments
 (0)