aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-04-28 11:49:55 -0700
committerGitHub <noreply@github.com>2021-04-28 11:49:55 -0700
commit9f8a50723f8a84b3e4755b418570148f422d1b28 (patch)
tree7780b58415e4d5c44663455665ef903b0d07736d /mjit_worker.c
parent96fd1e1f22ddea943adf5e222beb8a00ae48a70f (diff)
downloadruby-9f8a50723f8a84b3e4755b418570148f422d1b28.tar.gz
Specify -c to emit pch with clang (#4423)
[Bug #17836]
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 8939c9b927..c34f85c769 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -807,6 +807,7 @@ make_pch(void)
const char *rest_args[] = {
# ifdef __clang__
"-emit-pch",
+ "-c",
# endif
// -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