зеркало из https://github.com/github/ruby.git
mjit.c: pch file argument
* 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:
Родитель
ae62ab3302
Коммит
247ec65a6c
2
mjit.c
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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче