]> Cypherpunks repositories - keks.git/commitdiff
Full path to iwyu maps
authorSergey Matveev <stargrave@stargrave.org>
Mon, 7 Apr 2025 11:38:31 +0000 (14:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 7 Apr 2025 11:38:31 +0000 (14:38 +0300)
c/lint/iwyu

index 0b249dd3bb9e5398fb103cd85bc5c8bc9ac080b834aa0298f8623b58a0fbb16f..a61a4b350bf5bb45f3d63f924360e57737ebbbc40e146a5225b101462e64fed5 100755 (executable)
@@ -5,5 +5,6 @@ redo-ifchange $root/../compile_flags.txt
 cflags=$(cat $root/../compile_flags.txt)
 [ $# -eq 0 ] && srcs=*.c || srcs="$@"
 for c in $srcs ; do
-    include-what-you-use $cflags -Xiwyu --mapping_file=$root/iwyu-maps.imp $c 2>&1
+    include-what-you-use $cflags -Xiwyu \
+        --mapping_file=$(realpath $root/iwyu-maps.imp) $c 2>&1
 done