kabiroberai / node-swift

Create Node modules in Swift
MIT License
416 stars 11 forks source link

Windows build failing on swiftasynccall #11

Open 1Conan opened 1 year ago

1Conan commented 1 year ago
node_modules\node-swift\Sources\CNodeAPI\task_reflection.cpp:61:16: error: 'swiftasynccall' calling convention is not supported for this target
__attribute__((swiftasynccall)) static void node_swift_resume_trampoline(__attribute__((swift_async_context)) void *ctx) {
               ^
node_modules\node-swift\Sources\CNodeAPI\task_reflection.cpp:70:24: error: incompatible function poi
nter types assigning to 'TaskContinuationFunction *' (aka 'void (*)(__attribute__((swift_async_context)) void *)') from 'void (*)(__attribute__((swift_async_context)) void *) __attribute__((swiftasynccall))'
    task->ResumeTask = &node_swift_resume_trampoline;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.