summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-05-03 22:49:48 (GMT)
committerTakashi Kokubun <takashikkbn@gmail.com>2020-05-03 22:49:51 (GMT)
commit077619848623e9c7f8d6d8041596199115b7fc68 (patch)
tree4e7705071c076af38731983a4648dd1a884195d3 /mjit_worker.c
parentf72bec2cea313f7a72a6f907f3dd64f766e917f6 (diff)
Debug Solaris's MJIT failure
using -Winvalid-pch https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200501T170004Z.fail.html.gz
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 5942880..145ad54 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -266,7 +266,11 @@ static char *libruby_pathflag;
#if defined(__GNUC__) && \
(!defined(__clang__) || \
(defined(__clang__) && (defined(__FreeBSD__) || defined(__GLIBC__))))
-# define GCC_PIC_FLAGS "-Wfatal-errors", "-fPIC", "-shared", "-w", "-pipe",
+# ifdef __sun
+# define GCC_PIC_FLAGS "-Winvalid-pch", "-fPIC", "-shared", "-w", "-pipe",
+# else
+# define GCC_PIC_FLAGS "-Wfatal-errors", "-fPIC", "-shared", "-w", "-pipe",
+# endif
# define MJIT_CFLAGS_PIPE 1
#else
# define GCC_PIC_FLAGS /* empty */