mirror of
https://github.com/open-goal/jak-project
synced 2026-06-23 01:19:57 -04:00
e00bc479f4
This also removes the LIBCO_MPROTECT setting, I don't know why I enabled that but it prevented putting the context swap code in the text section.
34 lines
839 B
C
Vendored
Generated
34 lines
839 B
C
Vendored
Generated
#if defined(__clang__) || defined(__GNUC__)
|
|
#if defined(__i386__)
|
|
#include "x86.c"
|
|
#elif defined(__amd64__)
|
|
#include "amd64.c"
|
|
#elif defined(__arm__)
|
|
#include "arm.c"
|
|
#elif defined(__aarch64__)
|
|
#include "aarch64.c"
|
|
#elif defined(__powerpc64__) && defined(_CALL_ELF) && _CALL_ELF == 2
|
|
#include "ppc64v2.c"
|
|
#elif defined(_ARCH_PPC) && !defined(__LITTLE_ENDIAN__)
|
|
#include "ppc.c"
|
|
#elif defined(__riscv)
|
|
#include "riscv.c"
|
|
#elif defined(_WIN32)
|
|
#include "fiber.c"
|
|
#else
|
|
#include "sjlj.c"
|
|
#endif
|
|
#elif defined(_MSC_VER)
|
|
#if defined(_M_IX86)
|
|
#include "x86.c"
|
|
#elif defined(_M_AMD64)
|
|
#include "amd64.c"
|
|
#elif defined(_M_ARM64)
|
|
#include "aarch64.c"
|
|
#else
|
|
#include "fiber.c"
|
|
#endif
|
|
#else
|
|
#error "libco: unsupported processor, compiler or operating system"
|
|
#endif
|