Skip to content

Commit

Permalink
Fix lack of FlexLexer include dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Dec 15, 2024
1 parent 5bbbb92 commit 8b11780
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/bin/make-compilation-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ set -e

BANT=${BANT:-bant}

if [ ! -e bazel-bin ]; then
echo "Before creating compilation DB, need to run bazel build first"
exit 1
fi

if command -v ${BANT} >/dev/null; then
${BANT} compile-flags > compile_flags.txt

# Bant does not see yet the flex dependency inside the toolchain
for d in bazel-out/../../../external/*flex*/src/FlexLexer.h ; do
echo "-I$(dirname $d)" >> compile_flags.txt
done
else
echo "To create compilation DB, need to have http://bant.build/ installed."
echo "To create compilation DB, need to have http://bant.build/ installed or provided in BANT environment variable."
exit 1
fi

0 comments on commit 8b11780

Please sign in to comment.