1
hermetic_cc_toolchain/getpath

7 lines
172 B
Bash
Executable File

#!/bin/bash
exec bazel aquery \
--platforms "$1" "$2" 2>/dev/null | \
awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \
awk -F'\\[|\\]' '{print $2}'