htop/iwyu/run_iwyu.sh

15 lines
320 B
Bash
Raw Normal View History

2020-09-19 12:20:03 +00:00
#!/bin/sh
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
SOURCEDIR="$SCRIPTDIR/.."
PKG_NL3=$(pkg-config --cflags libnl-3.0)
IWYU=${IWYU:-iwyu}
cd "$SOURCEDIR" || exit
2020-09-19 12:20:03 +00:00
make clean
2020-11-18 14:12:18 +00:00
make -k -s CC="$IWYU" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3"