Skip to content

Commit d33f890

Browse files
committed
Minor code cleanup
1 parent 7e11174 commit d33f890

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/toolchains/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from shutil import copyfile
2525
from os.path import join, splitext, exists, relpath, dirname, basename, split
2626
from inspect import getmro
27-
from tempfile import mkdtemp
2827

2928
from multiprocessing import Pool, cpu_count
3029
from tools.utils import run_cmd, mkdir, rel_path, ToolException, NotSupportedException, split_path
@@ -212,8 +211,8 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
212211
self.has_config = False
213212

214213
self.build_all = False
214+
self.build_dir = None
215215
self.timestamp = time()
216-
self.temp_dir = None
217216
self.jobs = 1
218217

219218
self.CHROOT = None
@@ -480,7 +479,7 @@ def relative_object_path(self, build_path, base_dir, source):
480479
return join(obj_dir, name + '.o')
481480

482481
def get_inc_file(self, includes):
483-
include_file = join(self.temp_dir, "includes_%s.txt" % self.inc_md5)
482+
include_file = join(self.build_dir, "includes_%s.txt" % self.inc_md5)
484483
if not exists(include_file):
485484
with open(include_file, "wb") as f:
486485
cmd_list = []
@@ -507,7 +506,7 @@ def compile_sources(self, resources, build_path, inc_dirs=None):
507506
# Unique id of all include paths
508507
self.inc_md5 = md5(' '.join(inc_paths)).hexdigest()
509508
# Where to store response files
510-
self.temp_dir = build_path
509+
self.build_dir = build_path
511510

512511
objects = []
513512
queue = []

0 commit comments

Comments
 (0)