ruby-changes:50304
From: shyouhei <ko1@a...>
Date: Fri, 16 Feb 2018 11:10:57 +0900 (JST)
Subject: [ruby-changes:50304] shyouhei:r62419 (trunk): non-constant aggregate initializer is a C99ism
shyouhei 2018-02-16 11:10:52 +0900 (Fri, 16 Feb 2018) New Revision: 62419 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62419 Log: non-constant aggregate initializer is a C99ism Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62418) +++ mjit.c (revision 62419) @@ -597,11 +597,14 @@ make_pch(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L597 # ifdef __clang__ "-emit-pch", # endif - "-o", pch_file, header_file, + "-o", NULL, NULL, NULL, }; char **args; + int len = sizeof(rest_args) / sizeof(const char *); + rest_args[len - 2] = header_file; + rest_args[len - 3] = pch_file; verbose(2, "Creating precompiled header"); args = form_args(3, CC_COMMON_ARGS, CC_CODEFLAG_ARGS, rest_args); if (args == NULL) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/