[gjs: 10/12] build: Accommodate iwyu_tool named iwyu_tool.py
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 10/12] build: Accommodate iwyu_tool named iwyu_tool.py
- Date: Tue, 10 Aug 2021 04:08:01 +0000 (UTC)
commit 3124c3a9ec538d1f86df6d122e8750561fe905ea
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Jul 31 21:27:07 2021 -0700
build: Accommodate iwyu_tool named iwyu_tool.py
In different versions of IWYU, the iwyu_tool may have a .py extension.
Accommodate both names.
tools/run_iwyu.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh
index 28f12f22..319da33e 100755
--- a/tools/run_iwyu.sh
+++ b/tools/run_iwyu.sh
@@ -43,7 +43,7 @@ fi
echo "files: $files"
-IWYU="python3 $(which iwyu_tool) -p ."
+IWYU="python3 $(which iwyu_tool || which iwyu_tool.py) -p ."
IWYU_RAW="include-what-you-use -xc++ -std=c++17 -Xiwyu --keep=config.h"
IWYU_RAW_INC="-I. -I.. $(pkg-config --cflags gobject-introspection-1.0 mozjs-78)"
PRIVATE_MAPPING="-Xiwyu --mapping_file=$SRCDIR/tools/gjs-private-iwyu.imp -Xiwyu --keep=config.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]