blob: cc75a0b4e1b3b395820fd5fc1691cae86435d71c [file] [log] [blame]
#!/bin/env bash
# Generate compile commands files for all known projects in this repo
. "$(dirname $0)"/common.sh
ensure_cheriot_rtos_root
find_sdk $1
echo "Using SDK=$SDK"
for dir in tests tests.extra/*/ ex*/[[:digit:]]* ; do
echo Generating compile_commands.json for $dir
(cd $dir && xmake f --sdk="${SDK}" && xmake project -k compile_commands)
done