From a355616269dbb521b1d9699e5a9a051fc73cc786 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Wed, 11 Sep 2024 17:31:57 +0200 Subject: [PATCH] Disable `[[always_inline]]` for Windows for now --- Sources/_CWasmKit/include/InlineCode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/_CWasmKit/include/InlineCode.h b/Sources/_CWasmKit/include/InlineCode.h index d219e5d1..4eb10c86 100644 --- a/Sources/_CWasmKit/include/InlineCode.h +++ b/Sources/_CWasmKit/include/InlineCode.h @@ -16,7 +16,8 @@ #if WASMKIT_USE_DIRECT_THREADED_CODE // Inline instruction implementation written in Swift side into C handler // function. Used in DirectThreadedCode.inc. -# if defined(__clang__) && (__clang_major__ >= 16) && __has_attribute(always_inline) +// TODO: Clang in Swift 5.10 Windows toolchain seems not to have `[[clang::always_inline]]`? +# if defined(__clang__) && (__clang_major__ >= 16) && __has_attribute(always_inline) && !defined(_WIN32) // `always_inline` at statement level is available since Clang 16. # define INLINE_CALL [[clang::always_inline]] # else