1
hermetic_cc_toolchain/getpath

9 lines
253 B
Plaintext
Raw Normal View History

2021-06-10 18:51:59 +03:00
#!/bin/bash
2021-06-10 19:01:20 +03:00
# in builds.sr.ht, 'bazel' binary is stored in $HOME.
exec env PATH=$PATH:$HOME \
bazel aquery \
2021-06-10 18:51:59 +03:00
--platforms "$1" "$2" 2>/dev/null | \
awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \
awk -F'\\[|\\]' '{print $2}'