diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-11 16:28:04 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-11 16:28:04 +0000 |
commit | 0fd5f063aa8d4e6536e7f79122b4cb17a4f481e5 (patch) | |
tree | e3918b2aac10bd5d578a92a4ab469f0bb6bc5a82 /mjit_worker.c | |
parent | 3dd4867340602d2646ecd40b67b61404111e9010 (diff) |
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.c | 9 |
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) |