mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
support cross-compilation.
On cross-compilation, compiled binary can no be created because compiled binary should be created by same interpreter (on cross- compilation, host ruby is used to build ruby (BASERUBY)). So that cross-compilation system loads required scripts in text. It is same as miniruby.
This commit is contained in:
parent
9c2807b2df
commit
40026a408d
Notes:
git
2019-12-11 11:25:18 +09:00
5 changed files with 40 additions and 18 deletions
|
@ -3,6 +3,13 @@
|
|||
#include "iseq.h"
|
||||
#include "builtin.h"
|
||||
|
||||
#if CROSS_COMPILING
|
||||
|
||||
#define INCLUDED_BY_BUILTIN_C 1
|
||||
#include "mini_builtin.c"
|
||||
|
||||
#else
|
||||
|
||||
#include "builtin_binary.inc"
|
||||
|
||||
static const unsigned char*
|
||||
|
@ -36,6 +43,8 @@ rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin
|
|||
rb_iseq_eval(iseq);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
Init_builtin(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue