mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Stop generating MJIT_PCH include guard
to fix https://ci.appveyor.com/project/ruby/ruby/builds/32577700/job/yh61rom35wt2uv39 It was for JIT compaction, and we don't support it on mswin.
This commit is contained in:
parent
76d9be9ce9
commit
e4d3d5ceab
1 changed files with 4 additions and 0 deletions
|
@ -1023,8 +1023,10 @@ compile_prelude(FILE *f)
|
|||
const char *s = pch_file;
|
||||
const char *e = header_name_end(s);
|
||||
|
||||
# ifndef _MSC_VER // Visual Studio doesn't expect macro changes around headers. Anyway we don't support compaction there...
|
||||
fprintf(f, "#ifndef MJIT_PCH\n");
|
||||
fprintf(f, "#define MJIT_PCH\n");
|
||||
# endif
|
||||
fprintf(f, "#include \"");
|
||||
// print pch_file except .gch for gcc, but keep .pch for mswin
|
||||
for (; s < e; s++) {
|
||||
|
@ -1035,7 +1037,9 @@ compile_prelude(FILE *f)
|
|||
fputc(*s, f);
|
||||
}
|
||||
fprintf(f, "\"\n");
|
||||
# ifndef _MSC_VER
|
||||
fprintf(f, "#endif\n");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Reference in a new issue