mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support coroutine on universal binary
This commit is contained in:
parent
e34eb58ac7
commit
07b4b1b1cb
4 changed files with 33 additions and 1 deletions
12
coroutine/universal/Context.S
Normal file
12
coroutine/universal/Context.S
Normal file
|
@ -0,0 +1,12 @@
|
|||
#if 0
|
||||
#elif defined __x86_64__
|
||||
# include "coroutine/amd64/Context.S"
|
||||
#elif defined __i386__
|
||||
# include "coroutine/x86/Context.S"
|
||||
#elif defined __ppc64__
|
||||
# include "coroutine/ppc64le/Context.S"
|
||||
#elif defined __arm64__
|
||||
# include "coroutine/arm64/Context.S"
|
||||
#else
|
||||
# error "Unsupported CPU"
|
||||
#endif
|
17
coroutine/universal/Context.h
Normal file
17
coroutine/universal/Context.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef COROUTINE_UNIVERSAL_CONTEXT_H
|
||||
#define COROUTINE_UNIVERSAL_CONTEXT_H 1
|
||||
|
||||
#if 0
|
||||
#elif defined __x86_64__
|
||||
# include "coroutine/amd64/Context.h"
|
||||
#elif defined __i386__
|
||||
# include "coroutine/x86/Context.h"
|
||||
#elif defined __ppc64__
|
||||
# include "coroutine/ppc64le/Context.h"
|
||||
#elif defined __arm64__
|
||||
# include "coroutine/arm64/Context.h"
|
||||
#else
|
||||
# error "Unsupported CPU"
|
||||
#endif
|
||||
|
||||
#endif /* COROUTINE_UNIVERSAL_CONTEXT_H */
|
Loading…
Add table
Add a link
Reference in a new issue