aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_worker.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 16:28:04 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 16:28:04 +0000
commit0e0e7a77d284a1493ef7205e911ce8fb56e5ccb2 (patch)
treee3918b2aac10bd5d578a92a4ab469f0bb6bc5a82 /mjit_worker.c
parentce3404adda32c83a9c24e4d09916f636cf24cea4 (diff)
downloadruby-0e0e7a77d284a1493ef7205e911ce8fb56e5ccb2.tar.gz
win32/Makefile.sub: generate MJIT header pdb
in the MJIT-header-specific path, not default path like vc140.pdb. mjit_worker.c: specify the MJIT-header-specific pdb path. tool/rbinstall.rb: install MJIT header pdb as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 0b5d27fa35..e8f36b029c 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -692,7 +692,7 @@ static int
compile_c_to_so(const char *c_file, const char *so_file)
{
int exit_code;
- const char *files[] = { NULL, NULL, NULL, NULL, NULL, "-link", libruby_pathflag, NULL };
+ const char *files[] = { NULL, NULL, NULL, NULL, NULL, NULL, "-link", libruby_pathflag, NULL };
char **args;
char *p, *obj_file;
@@ -728,6 +728,13 @@ compile_c_to_so(const char *c_file, const char *so_file)
p = append_str2(p, c_file, strlen(c_file));
*p = '\0';
+ /* files[5] = "-Fd*.pdb" */
+ files[5] = p = alloca(sizeof(char) * (rb_strlen_lit("-Fd") + strlen(pch_file) + 1));
+ p = append_lit(p, "-Fd");
+ p = append_str2(p, pch_file, strlen(pch_file) - rb_strlen_lit(".pch"));
+ p = append_lit(p, ".pdb");
+ *p = '\0';
+
args = form_args(5, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS,
files, CC_LIBS, CC_DLDFLAGS_ARGS);
if (args == NULL)