mjit.c: skip compaction on MinGW
because linking multiple .o files is problematic without having `static` to the same function definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2aea3deddd
commit
d4381d2ceb
2
mjit.c
2
mjit.c
@ -872,6 +872,7 @@ link_o_to_so(const char **o_files, const char *so_file)
|
|||||||
static void
|
static void
|
||||||
compact_all_jit_code(void)
|
compact_all_jit_code(void)
|
||||||
{
|
{
|
||||||
|
# ifndef _WIN32 /* This requires header transformation but we don't transform header on Windows for now */
|
||||||
struct rb_mjit_unit *unit;
|
struct rb_mjit_unit *unit;
|
||||||
struct rb_mjit_unit_node *node;
|
struct rb_mjit_unit_node *node;
|
||||||
double start_time, end_time;
|
double start_time, end_time;
|
||||||
@ -952,6 +953,7 @@ compact_all_jit_code(void)
|
|||||||
free(unit);
|
free(unit);
|
||||||
verbose(1, "JIT compaction failure (%.1fms): Failed to compact methods", end_time - start_time);
|
verbose(1, "JIT compaction failure (%.1fms): Failed to compact methods", end_time - start_time);
|
||||||
}
|
}
|
||||||
|
# endif /* _WIN32 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user