diff --git a/tools/system_libs.py b/tools/system_libs.py index 6ef19ea06c656..ef896f6ec96ac 100644 --- a/tools/system_libs.py +++ b/tools/system_libs.py @@ -529,7 +529,7 @@ def build_objects(self, build_dir): elif batch_inputs: # Use relative paths to reduce the length of the command line. # This allows to avoid switching to a response file as often. - src = os.path.relpath(src, self.build_dir) + src = os.path.relpath(src, build_dir) src = utils.normalize_path(src) batches.setdefault(tuple(cmd), []).append(src) else: