2022-07-27 23:33:53 +03:00
|
|
|
#!/usr/bin/env bash
|
2023-03-02 23:42:35 +02:00
|
|
|
|
|
|
|
# Copyright 2023 Uber Technologies, Inc.
|
|
|
|
# Licensed under the Apache License, Version 2.0
|
|
|
|
|
2022-04-13 17:52:25 +03:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
indent() { sed 's/^/ /'; }
|
|
|
|
|
2023-03-06 17:32:48 +02:00
|
|
|
echo "--- Available toolchains:"
|
|
|
|
tools/bazel query --noshow_progress '@zig_sdk//toolchain:*' | indent
|
|
|
|
echo "--- Available platforms:"
|
|
|
|
tools/bazel query --noshow_progress '@zig_sdk//platform:*' | indent
|
|
|
|
echo "--- Available libc aware toolchains:"
|
|
|
|
tools/bazel query --noshow_progress '@zig_sdk//libc_aware/toolchain:*' | indent
|
|
|
|
echo "--- Available libc aware platforms:"
|
|
|
|
tools/bazel query --noshow_progress '@zig_sdk//libc_aware/platform:*' | indent
|
|
|
|
echo "--- Available libc variants:"
|
|
|
|
tools/bazel query --noshow_progress "attr(constraint_setting, @zig_sdk//libc:variant, @zig_sdk//...)" | indent
|