aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-31 08:29:56 -0400
committerJack Lloyd <[email protected]>2017-08-31 08:29:56 -0400
commit0c33ef96d779ca781287006e4a55361ee76981a5 (patch)
treed361459a7de0c2110d96adbfaf47c1d7ad24b480 /configure.py
parent47488c06bb2d806f9bb63cac35d881264f214c96 (diff)
Use object list argument, other lint nits
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.py b/configure.py
index dd2d6af4b..7c617b919 100755
--- a/configure.py
+++ b/configure.py
@@ -1732,7 +1732,7 @@ class MakefileListsGenerator(object):
def _fuzzer_bin_list(self, fuzzer_objs, bin_dir):
for obj in fuzzer_objs:
- (directory, name) = os.path.split(os.path.normpath(obj))
+ (_, name) = os.path.split(os.path.normpath(obj))
name = name.replace('.' + self._osinfo.obj_suffix, '')
yield os.path.join(bin_dir, name)
@@ -1778,7 +1778,6 @@ class MakefileListsGenerator(object):
"""
Form snippets of makefile for building each source file
"""
-
includes = self._cc.add_include_dir_option + self._build_paths.include_dir
if self._build_paths.external_headers:
includes += ' ' + self._cc.add_include_dir_option + self._build_paths.external_include_dir
@@ -1787,7 +1786,7 @@ class MakefileListsGenerator(object):
is_fuzzer = obj_dir.find('fuzzer') != -1
- for (obj_file, src) in zip(self._objectfile_list(sources, obj_dir), sources):
+ for (obj_file, src) in zip(objects, sources):
isa_specific_flags_str = "".join([" %s" % flagset for flagset in sorted(self._isa_specific_flags(src))])
yield '%s: %s\n\t$(CXX)%s $(%s_FLAGS) %s %s %s %s$@\n' % (
@@ -1809,7 +1808,7 @@ class MakefileListsGenerator(object):
for t in targets:
src_list, src_dir = self._build_paths.src_info(t)
src_list.sort()
- objects = list(self._objectfile_list(src_list, src_dir))
+ objects = sorted(self._objectfile_list(src_list, src_dir))
obj_key = '%s_objs' % (t)
out[obj_key] = makefile_list(objects)