scons: Fix variable not found error

Change-Id: I09708fea777a57a35e55409c8997ed0b25de2b46
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64012
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Melissa Jost <melissakjost@gmail.com>
This commit is contained in:
Jason Lowe-Power
2022-09-30 14:11:28 -07:00
committed by Jason Lowe-Power
parent e7a73c7b59
commit 9a1074d27f

View File

@@ -264,7 +264,7 @@ def parse_build_path(target):
while path_dirs and path_dirs[-1] != "build":
variant_dir = path_dirs.pop()
if not path_dirs:
error("No non-leaf 'build' dir found on target path.", t)
error("No non-leaf 'build' dir found on target path.", target)
return os.path.join("/", *path_dirs), variant_dir