ruby-changes:50345
From: usa <ko1@a...>
Date: Sun, 18 Feb 2018 11:51:36 +0900 (JST)
Subject: [ruby-changes:50345] usa:r62460 (trunk): Fixed the order of arguments for cl.exe
usa 2018-02-18 11:51:31 +0900 (Sun, 18 Feb 2018) New Revision: 62460 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62460 Log: Fixed the order of arguments for cl.exe * mjit.c (compile_c_to_so): `CC_DLDFLAGS_ARGS` must be after `-link` for cl.exe. Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62459) +++ mjit.c (revision 62460) @@ -686,7 +686,12 @@ compile_c_to_so(const char *c_file, cons https://github.com/ruby/ruby/blob/trunk/mjit.c#L686 files[numberof(files)-3] = so_file; #endif args = form_args(5, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS, - CC_DLDFLAGS_ARGS, files, libs); +#ifdef _MSC_VER + files, libs, CC_DLDFLAGS_ARGS +#else + CC_DLDFLAGS_ARGS, files, libs +#endif + ); if (args == NULL) return FALSE; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/