2022-07-27 23:33:53 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-04-13 17:52:25 +03:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
indent() { sed 's/^/ /'; }
|
|
|
|
|
|
|
|
echo "Available toolchains:"
|
2022-04-18 11:58:43 +03:00
|
|
|
bazel query --noshow_progress '@zig_sdk//toolchain:*' | indent
|
2022-04-13 17:52:25 +03:00
|
|
|
echo "Available platforms:"
|
2022-04-18 11:58:43 +03:00
|
|
|
bazel query --noshow_progress '@zig_sdk//platform:*' | indent
|
2022-04-13 17:52:25 +03:00
|
|
|
echo "Available libc aware toolchains:"
|
2022-04-18 11:58:43 +03:00
|
|
|
bazel query --noshow_progress '@zig_sdk//libc_aware/toolchain:*' | indent
|
2022-04-13 17:52:25 +03:00
|
|
|
echo "Available libc aware platforms:"
|
2022-04-18 11:58:43 +03:00
|
|
|
bazel query --noshow_progress '@zig_sdk//libc_aware/platform:*' | indent
|
2022-04-13 17:52:25 +03:00
|
|
|
echo "Available libc variants:"
|
2022-04-18 11:58:43 +03:00
|
|
|
bazel query --noshow_progress "attr(constraint_setting, @zig_sdk//libc:variant, @zig_sdk//...)" | indent
|