Lines Matching +full:build +full:- +full:clang
3 set -eou pipefail
5 # Path to the meson build directory
6 : "${BUILD:=build}"
8 ABSPATH="$(command -v "$0" | xargs realpath)"
11 : "${LIBPLDM_ROOT:="${ABSPATH%scripts/apply-renames}"}"
13 # Deal with clang including its version in all the tool names
15 : "${CLANG_RENAME:="$(command -v clang-rename-"${CLANG_VERSION}")"}"
16 : "${CLANG_APPLY_REPLACEMENTS:="$(command -v clang-apply-replacements-"${CLANG_VERSION}")"}"
21 # Allow clang-rename to pick up the per-file flags from the compile command
23 : "${CRFLAGS:="-p=."}"
25 CRINPUT=$(realpath --relative-to "$BUILD" "$1")
27 # Deal with clang-rename segfaulting when file paths from the compile command
29 cd "$BUILD"
32 trap "rm -f fixes.*.yaml" EXIT
35 # ls-files`, which, separately, is also subject to bash's brace expansion. See
38 git ls-files -- ':/:*.[ch]'{,pp} |
39 xargs -I '{}' -n 1 -P "$JOBS" -- \
40 bash -c '"$0" --force --input="$1" --export-fixes="$(mktemp fixes.XXXXX.yaml)" "$2" "$3"' \
46 # Deal with subsequent runs of clang-rename bailing out because it's modified
48 # declaration for the as-yet un-renamed symbol in the implementation
49 git -C "$LIBPLDM_ROOT" restore -- include