Skip to content

Commit

Permalink
tools: setup build in local_fix_format (envoyproxy#27060)
Browse files Browse the repository at this point in the history
Signed-off-by: ohadvano <[email protected]>
Co-authored-by: phlax <[email protected]>
Signed-off-by: Ryan Eskin <[email protected]>
  • Loading branch information
2 people authored and reskin89 committed Jul 11, 2023
1 parent 0cf23b9 commit 782d48c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/local_fix_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
# If DISPLAY is set, then tkdiff pops up for some BUILD changes.
unset DISPLAY

# The following optional argument is added to be able to run this script using Docker,
# due to a problem to locate clang using WSL on Windows. https://learn.microsoft.com/en-us/windows/wsl/about
# Call with -docker as the first arument.
if [[ $# -gt 0 && "$1" == "-docker" ]]; then
shift
exec ./ci/run_envoy_docker.sh "$0" -run-build-setup "$@"
fi

if [[ $# -gt 0 && "$1" == "-run-build-setup" ]]; then
shift
. ci/build_setup.sh
fi

if [[ $# -gt 0 && "$1" == "-verbose" ]]; then
verbose=1
shift
Expand Down

0 comments on commit 782d48c

Please sign in to comment.