1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Specify -c to emit pch with clang (#4423)

[Bug #17836]
This commit is contained in:
Takashi Kokubun 2021-04-28 11:49:55 -07:00 committed by GitHub
parent 96fd1e1f22
commit 9f8a50723f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-04-29 03:50:29 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View file

@ -807,6 +807,7 @@ make_pch(void)
const char *rest_args[] = { const char *rest_args[] = {
# ifdef __clang__ # ifdef __clang__
"-emit-pch", "-emit-pch",
"-c",
# endif # endif
// -nodefaultlibs is a linker flag, but it may affect cc1 behavior on Gentoo, which should NOT be changed on pch: // -nodefaultlibs is a linker flag, but it may affect cc1 behavior on Gentoo, which should NOT be changed on pch:
// https://gitweb.gentoo.org/proj/gcc-patches.git/tree/7.3.0/gentoo/13_all_default-ssp-fix.patch // https://gitweb.gentoo.org/proj/gcc-patches.git/tree/7.3.0/gentoo/13_all_default-ssp-fix.patch