summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-06 22:59:05 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-06 22:59:06 -0800
commit718e4f6efce6801d7bfcd412f05ba1a4d4cdb479 (patch)
tree65367f3bf6584500d5a549e3f548e468b6ba3a66 /mjit.c
parent98c41dfe6f986ed0a0277d8b1379ed632ec1ce82 (diff)
downloadruby-718e4f6efce6801d7bfcd412f05ba1a4d4cdb479.tar.gz
MJIT: Explain why we have MJIT_CFLAGS_PIPE [ci skip]
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mjit.c b/mjit.c
index 3dbbc0fab0..04337f6529 100644
--- a/mjit.c
+++ b/mjit.c
@@ -1782,10 +1782,10 @@ mjit_init(const struct mjit_options *opts)
cc_added_args = split_flags(opts->debug_flags);
xfree(opts->debug_flags);
#if MJIT_CFLAGS_PIPE
- // eliminate a flag incompatible with `-pipe`
+ // Filter out `-save-temps`. It's a C compiler flag used by update-deps and not compatible with `-pipe`.
for (size_t i = 0, j = 0; i < sizeof(CC_COMMON_ARGS) / sizeof(char *); i++) {
if (CC_COMMON_ARGS[i] && strncmp("-save-temps", CC_COMMON_ARGS[i], strlen("-save-temps")) == 0)
- continue; // skip -save-temps flag
+ continue; // Skip `-save-temps`
cc_common_args[j] = CC_COMMON_ARGS[i];
j++;
}