summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 12:00:27 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 12:00:27 +0000
commit33eebfd30132304244f35407daec37c4ba77a870 (patch)
tree6822fabe9ad3fda6ed60a1730df92ebfbd89aeb6 /mjit.c
parenta8812080c4977c2731e8ff1b129b59d236bc12e3 (diff)
mjit_worker.c: undefine CC_PATH
because we mostly use cc_path now and the comment is obsolete (CC_PATH is now absolute path and the TODO is already resolved). mjit.c: use CC_COMMON_ARGS[0] directly git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index 1f9140b7a8..7e3302224c 100644
--- a/mjit.c
+++ b/mjit.c
@@ -632,15 +632,14 @@ mjit_init(struct mjit_options *opts)
if (mjit_opts.max_cache_size < MIN_CACHE_SIZE)
mjit_opts.max_cache_size = MIN_CACHE_SIZE;
- verbose(2, "MJIT: CC defaults to %s", CC_PATH);
-
/* Initialize variables for compilation */
#ifdef _MSC_VER
pch_status = PCH_SUCCESS; /* has prebuilt precompiled header */
#else
pch_status = PCH_NOT_READY;
#endif
- cc_path = CC_PATH;
+ cc_path = CC_COMMON_ARGS[0];
+ verbose(2, "MJIT: CC defaults to %s", cc_path);
tmp_dir = system_tmpdir();
verbose(2, "MJIT: tmp_dir is %s", tmp_dir);