Change asm to __asm__ in helpers.c (#6188)

This is an attempt to fix #6177 since according to [this reference][1]
some modes of compilation require `__asm__` instead of `asm`.

[1]: https://en.cppreference.com/w/c/language/asm
This commit is contained in:
Alex Crichton
2023-04-10 12:47:25 -05:00
committed by GitHub
parent b9fb31e9a7
commit dbd000c1ce

View File

@@ -75,7 +75,7 @@ __attribute__((weak, noinline))
#endif
void __jit_debug_register_code() {
#ifndef CFG_TARGET_OS_windows
asm("");
__asm__("");
#endif
}
@@ -88,7 +88,7 @@ struct JITDescriptor {
#ifdef CFG_TARGET_OS_windows
// export required for external access.
__declspec(dllexport)
__declspec(dllexport)
#else
// Note the `weak` linkage here which is the same purpose as above. We want to
// let other runtimes be able to override this since our own definition isn't