Skip to content

Commit 1ecc51d

Browse files
committed
build: Append "+clang" for clang builds
Add "+clang" to the directory iff there's no existing suffix on the defconfig name.
1 parent 31026be commit 1ecc51d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/scripts/lib.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function get_output_dir()
6868
esac
6969

7070
if [[ -n "$clang" ]]; then
71-
d="${d}_clang"
71+
# Append "+clang" if it's not already part of the defconfig name
72+
if [[ "$defconfig" != *"+"* ]]; then
73+
d="${d}+clang"
74+
fi
7275
fi
7376

7477
echo "$d"

0 commit comments

Comments
 (0)