mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-16 05:54:34 +03:00
Provide basic configuration for IWYU
This commit is contained in:
12
iwyu/run_iwyu.sh
Executable file
12
iwyu/run_iwyu.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
SCRIPT=$(readlink -f "$0")
|
||||
SCRIPTDIR=$(dirname "$SCRIPT")
|
||||
SOURCEDIR="$SCRIPTDIR/.."
|
||||
|
||||
PKG_NL3=$(pkg-config --cflags libnl-3.0)
|
||||
|
||||
cd "$SOURCEDIR"
|
||||
|
||||
make clean
|
||||
make -k CC="iwyu" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3"
|
Reference in New Issue
Block a user