diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-06 22:59:05 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-06 22:59:06 -0800 |
commit | 718e4f6efce6801d7bfcd412f05ba1a4d4cdb479 (patch) | |
tree | 65367f3bf6584500d5a549e3f548e468b6ba3a66 /mjit.c | |
parent | 98c41dfe6f986ed0a0277d8b1379ed632ec1ce82 (diff) | |
download | ruby-718e4f6efce6801d7bfcd412f05ba1a4d4cdb479.tar.gz |
MJIT: Explain why we have MJIT_CFLAGS_PIPE [ci skip]
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; } |