Skip to content

Commit 3f819d1

Browse files
luismarqueslenary
authored andcommitted
Add kind field to buildinfo.json
This helps OpenTitan's `get-toolchain.py` tool differentiate between the GCC and GCC+Clang toolchains, even if they have the same version.
1 parent 3e9f607 commit 3f819d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build-clang-with-args.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ BUILDINFO
171171
tee "${toolchain_dest}/buildinfo.json" <<BUILDINFO_JSON
172172
{
173173
"toolchain_config": "${toolchain_name}",
174+
"kind: "combined",
174175
"version": "${tag_name}",
175176
"clang_version": "${clang_version_string}",
176177
"clang_git": "${LLVM_VERSION}",

build-gcc-with-args.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ BUILDINFO
149149
tee "${toolchain_dest}/buildinfo.json" <<BUILDINFO_JSON
150150
{
151151
"toolchain_config": "${toolchain_name}",
152+
"kind: "gcc-only",
152153
"version": "${tag_name}",
153154
"gcc_version": "${gcc_version_string}",
154155
"qemu_version": "${qemu_version_string}",

0 commit comments

Comments
 (0)