Skip to content

Commit

Permalink
Disable [[always_inline]] for Windows for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Sep 14, 2024
1 parent b9018bd commit a355616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/_CWasmKit/include/InlineCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a355616

Please sign in to comment.