We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f44fc7e + 9760cb0 commit 45cc1f6Copy full SHA for 45cc1f6
etc/bazel-make-compilation-db.sh
@@ -49,6 +49,16 @@ done >> compile_flags.txt
49
# Qt include files check for this
50
echo '-fPIC' >> compile_flags.txt
51
52
+# Python include bindings.
53
+for f in bazel-out/../../../external/*/include/python3.*/Python.h; do
54
+ if [ -f "${f}" ]; then
55
+ PY_INC="$(dirname "${f}")"
56
+ echo "-I${PY_INC}"
57
+ echo "-I$(realpath "${PY_INC}")" # work around clangd bug
58
+ break
59
+ fi
60
+done >> compile_flags.txt
61
+
62
# Since we don't do per-file define extraction in compile_flag.txt,
63
# add them here globally
64
cat >> compile_flags.txt <<EOF
0 commit comments