Skip to content

Commit a651520

Browse files
committed
Attempt to fix Linux build - __has_attribute(swiftcall) doesn't work on Linux
1 parent 387ecad commit a651520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Runtime/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/// Does the current Swift platform use LLVM's intrinsic "swiftcall"
3636
/// calling convention for Swift functions?
3737
#ifndef SWIFT_USE_SWIFTCALL
38-
#if __has_attribute(swiftcall)
38+
#if __has_attribute(swiftcall) || defined(__linux__)
3939
#define SWIFT_USE_SWIFTCALL 1
4040
#else
4141
#define SWIFT_USE_SWIFTCALL 0

0 commit comments

Comments
 (0)