Skip to content

Commit

Permalink
ci/go: Fix compiler for api.go target (envoyproxy#30529)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Oct 26, 2023
1 parent 7e34671 commit 9a1b42e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ci/build_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ function setup_gcc_toolchain() {
}

function setup_clang_toolchain() {
if [[ -n "$CLANG_TOOLCHAIN_SETUP" ]]; then
return
fi
export CLANG_TOOLCHAIN_SETUP=1
ENVOY_STDLIB="${ENVOY_STDLIB:-libc++}"
if [[ -z "${ENVOY_RBE}" ]]; then
if [[ "${ENVOY_STDLIB}" == "libc++" ]]; then
Expand Down
4 changes: 1 addition & 3 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ case $CI_TARGET in
;&

api.go)
if [[ -z "$NO_BUILD_SETUP" ]]; then
setup_clang_toolchain
fi
setup_clang_toolchain
GO_IMPORT_BASE="github.com/envoyproxy/go-control-plane"
GO_TARGETS=(@envoy_api//...)
read -r -a GO_PROTOS <<< "$(bazel query "${BAZEL_GLOBAL_OPTIONS[@]}" "kind('go_proto_library', ${GO_TARGETS[*]})" | tr '\n' ' ')"
Expand Down

0 comments on commit 9a1b42e

Please sign in to comment.