Skip to content
Commit 75ce5d2d authored by Vijayenthiran Subramaniam's avatar Vijayenthiran Subramaniam
Browse files

build-hafnium.sh: remote out/reference folder during clean



The $PATH environment variable is used to set the path to the Clang
toolchain while building the Hafnium project. This toolchain path is
used to set the $toolchain_lib variable, which is saved in the
out/reference/args.gn file. When the Clang toolchain path is changed,
the usual practice is to perform a clean build of Hafnium and update the
$PATH environment variable to the new Clang path before rebuilding.
However, the clean command is not effectively removing the outdated
arg.gn file in the out/reference folder, leading to build failures due
to the use of an old $toolchain_lib variable. To avoid this issue, we
delete the out/reference folder altogether, ensuring that the
$toolchain_lib variable is always up to date.

Signed-off-by: Vijayenthiran Subramaniam's avatarVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
Change-Id: I346d87f6243c993e80aba99849141884cff0faca
parent 236cf9d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment