From fc4547b412e28164af1bf8981234c6af959ccc0b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 13 Jun 2023 10:07:16 +0200 Subject: WIP --- scripts/iwyu.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/iwyu.sh (limited to 'scripts/iwyu.sh') diff --git a/scripts/iwyu.sh b/scripts/iwyu.sh new file mode 100644 index 0000000..dfdd651 --- /dev/null +++ b/scripts/iwyu.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +iwyu_tool=iwyu-tool + +if ! command -v "$iwyu_tool" &> /dev/null; then + iwyu_tool=iwyu_tool.py +fi + +cpus=`grep processor /proc/cpuinfo | wc -l` + +exec $iwyu_tool -o clang -j $cpus -p "${MESON_BUILD_ROOT}" -- -Xiwyu --mapping_file="${MESON_SOURCE_ROOT}"/iwyu-mappings.imp -- cgit v1.2.3-70-g09d2