* mjit.c (compile_c_to_so): pass pch file only when using
  "-include-pch" option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-18 09:33:21 +00:00
Родитель ae62ab3302
Коммит 247ec65a6c
1 изменённых файлов: 2 добавлений и 0 удалений

2
mjit.c
Просмотреть файл

@ -676,7 +676,9 @@ compile_c_to_so(const char *c_file, const char *so_file)
p = append_str2(p, so_file, solen); p = append_str2(p, so_file, solen);
*p = '\0'; *p = '\0';
#else #else
# ifdef __clang__
files[1] = pch_file; files[1] = pch_file;
# endif
files[numberof(files)-3] = so_file; files[numberof(files)-3] = so_file;
#endif #endif
args = form_args(5, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS, args = form_args(5, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS,