24
24
from shutil import copyfile
25
25
from os .path import join , splitext , exists , relpath , dirname , basename , split
26
26
from inspect import getmro
27
- from tempfile import mkdtemp
28
27
29
28
from multiprocessing import Pool , cpu_count
30
29
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,
212
211
self .has_config = False
213
212
214
213
self .build_all = False
214
+ self .build_dir = None
215
215
self .timestamp = time ()
216
- self .temp_dir = None
217
216
self .jobs = 1
218
217
219
218
self .CHROOT = None
@@ -480,7 +479,7 @@ def relative_object_path(self, build_path, base_dir, source):
480
479
return join (obj_dir , name + '.o' )
481
480
482
481
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 )
484
483
if not exists (include_file ):
485
484
with open (include_file , "wb" ) as f :
486
485
cmd_list = []
@@ -507,7 +506,7 @@ def compile_sources(self, resources, build_path, inc_dirs=None):
507
506
# Unique id of all include paths
508
507
self .inc_md5 = md5 (' ' .join (inc_paths )).hexdigest ()
509
508
# Where to store response files
510
- self .temp_dir = build_path
509
+ self .build_dir = build_path
511
510
512
511
objects = []
513
512
queue = []
0 commit comments