diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-05-16 10:15:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-17 00:53:26 +0200 |
commit | b7ffb2bde74900613c8e6c68e033c6ce8cf38364 (patch) | |
tree | 7cde2b11d9c0d99319b6d8a124d93ca0f157bd55 /Meta/build-image-grub.sh | |
parent | 2b764b3594634f1f0b4ee5daefcb91c117bf64a5 (diff) | |
download | serenity-b7ffb2bde74900613c8e6c68e033c6ce8cf38364.zip |
Meta: Validate explicitly set TOOLCHAIN in `serenity.sh`
Previously, `serenity.sh rebuild-toolchain x86_64 clang` would simply
start building GCC instead and call it a day. With this change, if a
toolchain is passed as an argument, it is validated if it is either
"GNU" or "Clang" and exits with an error otherwise.
The `TOOLCHAIN` value defaults to the `SERENITY_TOOLCHAIN` environment
variable if not provided explicitly.
Diffstat (limited to 'Meta/build-image-grub.sh')
0 files changed, 0 insertions, 0 deletions