We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef5ef0 commit 5b01795Copy full SHA for 5b01795
include/swift/Runtime/Config.h
@@ -36,7 +36,9 @@
36
/// Does the current Swift platform use LLVM's intrinsic "swiftcall"
37
/// calling convention for Swift functions?
38
#ifndef SWIFT_USE_SWIFTCALL
39
-#if __has_attribute(swiftcall) || defined(__linux__)
+// Clang doesn't support mangling functions with the swiftcall attribute
40
+// on Windows and crashes during compilation: http://bugs.llvm.org/show_bug.cgi?id=32000
41
+#if (__has_attribute(swiftcall) || defined(__linux__)) && !defined(_WIN32)
42
#define SWIFT_USE_SWIFTCALL 1
43
#else
44
#define SWIFT_USE_SWIFTCALL 0
0 commit comments