From cd0673e654806eaa42bfe9bd4580a1e034af2911 Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 18 Feb 2018 02:51:31 +0000 Subject: Fixed the order of arguments for cl.exe * mjit.c (compile_c_to_so): `CC_DLDFLAGS_ARGS` must be after `-link` for cl.exe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mjit.c') diff --git a/mjit.c b/mjit.c index 3ba889bda2..9abc27fbe7 100644 --- a/mjit.c +++ b/mjit.c @@ -686,7 +686,12 @@ compile_c_to_so(const char *c_file, const char *so_file) 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; -- cgit v1.2.3