|
29 | 29 | File, MachineChoice, MesonException, MesonBugException, OrderedSet, |
30 | 30 | ExecutableSerialisation, EnvironmentException, |
31 | 31 | classify_unity_sources, get_compiler_for_source, |
32 | | - get_rsp_threshold, |
| 32 | + get_rsp_threshold, unique_list |
33 | 33 | ) |
34 | 34 | from ..options import OptionKey |
35 | 35 |
|
@@ -471,11 +471,11 @@ def relpath(todir: str, fromdir: str) -> str: |
471 | 471 | def flatten_object_list(self, target: build.BuildTarget, proj_dir_to_build_root: str = '' |
472 | 472 | ) -> T.Tuple[T.List[str], T.List[build.BuildTargetTypes]]: |
473 | 473 | obj_list, deps = self._flatten_object_list(target, target.get_objects(), proj_dir_to_build_root) |
474 | | - return list(dict.fromkeys(obj_list)), deps |
| 474 | + return unique_list(obj_list), deps |
475 | 475 |
|
476 | 476 | def determine_ext_objs(self, objects: build.ExtractedObjects) -> T.List[str]: |
477 | 477 | obj_list, _ = self._flatten_object_list(objects.target, [objects], '') |
478 | | - return list(dict.fromkeys(obj_list)) |
| 478 | + return unique_list(obj_list) |
479 | 479 |
|
480 | 480 | def _flatten_object_list(self, target: build.BuildTarget, |
481 | 481 | objects: T.Sequence[T.Union[str, 'File', build.ExtractedObjects]], |
|
0 commit comments